Hey,
We are working with Bryntum Scheduler Pro library for a planning component. This component is created with multiple features from different examples, but also some custom angular code.
Currently we have an issue when we have the "asset filter" enable and switch the day view. We are trying to reload the events in the left tree by reloading the resourceStore.data when we switch views.
In our angular component we reload the left tree data by giving new data to the resourceStore.
this.scheduler.schedulerInstance.crudManager.resourceStore.data = this.siteSetupResources;
When the filter is enabled while we switching views we get the following error:
core.js:4127 ERROR TypeError: Cannot read property 'id' of undefined
at Collection.splice (schedulerpro.module.min.js:18)
at ResourceStore.onNodeRemoveChild (schedulerpro.module.min.js:18)
at schedulerpro.module.min.js:18
at Array.forEach (<anonymous>)
at r.clearChildren (schedulerpro.module.min.js:18)
at SafeSubscriber.push../node_modules/rxjs/_esm5/internal/Subscriber.js.SafeSubscriber.__tryOrUnsub (Subscriber.js:192)
Could you maybe explain why we get this error and how we could properly fix this?
It works without errors when we don't use any filter input while switching.
Kind Regards,
Frits Bakker