Hello,
I have an error when i drag and drop an event.
It's works fine for one drag and the second this error appear.
Drag error.png (176.1 KiB) Viewed 320 times
I don't know what the problem is, I updated the schedule to version 5.1.0 and since then I have this error.
Re: [ANGULAR] Error when drag and drop event
Posted: Tue Aug 16, 2022 11:59 am
by mats
Tried 5.1.1? Can you please upload a small test case for us?
Re: [ANGULAR] Error when drag and drop event
Posted: Tue Aug 16, 2022 12:07 pm
by nico-priv
Sorry, it's complicated to make a test case of my project. I will try. But I think my problem may be the way I populate the schedule.
"this.schedu" is my scheduler.
And the main problem is that when you replace a full eventStore instance with already created records after assignments data, it causes this problem. Basically, it's race condition because of such approach. Assignments check if any events available with id defined and set a link with assigned resource to event record. But in your case events are not there at the moment and more than that it won't happen after you set events as well, because you replaced full eventStore.
In 2 words, try to set assignments data after eventStore replacement.