dataProcessor - Prevent update after server error

Good day

I am using the dataProcessor configured for REST with the GanttChart.

How can I prevent the GanttChart from updating if the server returns an error status or {action: “error/invalid”} response?

You can’t prevent the update.

The component updates its state and send’s the data to server side only after that. So, on moment of error response, the state of client side component is already updated.

You may check “undo” functionality, and attach a code which will call gantt.undo after a server side error.