On creating task, prevent task from adding to gantt on from but allow to call api

@ramil could you please help me on this Gantt Redo Undo not working