We recently upgraded from 5.3.5 to 6.1.7 and I noticed that when changing a specific the timeRange from the header's context menu we get an error in the console and also the TimeRange transforms from a single Day to a Range.
Attached the flow demonstrating the issue happening: bryntum-time-range-update-issue.png
I noticed that if I adjust the Apply logic so I also include "endDate", providing the same date as "startDate", the issue seems to be fixed. (Attached workaround)
Is this a bug or with latest changes "endDate" is actually a required field when updating a timeRange store record? The documentation is not very clear about this (attached image about the docs)
Is there a better way to update these timeRange records or the way we are doing through "record.set()" is indeed the correct approach?
Thanks!
Attachments
bryntum-timeranges-docs.png (68.52 KiB) Viewed 123 times
bryntum-potential-fix-time-range-update.png (26.32 KiB) Viewed 123 times
bryntum-time-range-update-issue.png (98.08 KiB) Viewed 123 times
Maybe that console error is not 100% related to this timeRange issue. I've been noticing in this new version that we are getting this error actually intermittently in other cases.
We do have a check for "crudStoreHasChanges" before attempting to destructure from "crudManager.changes" (attached image).
bryntum-crud-changes-impl.png (40.09 KiB) Viewed 122 times
So I don't know why now we are intetmittently getting "null" from crudManager.changes even though "crudStoreHasChanges" returned true.