How to avoid the error when update the project model two times like below, since i update the eventbar, then the events have changed, so i update the project model like below, i will set the events to empty, then update project model. sometimes the startDate and endDate of eventbar show error if i don't set the empty.
It's really hard to assist you with the error image and a little block of code. Could you please provide a runnable test case so we can run the app and debug it?
I cannot understand what you are doing. What are you calling updateProjectModel on? What does it do? When are you doing it? What are you doing by calling it?