Bug description
Calling scrollEventIntoView() on a Scheduler configured with TreeGroup feature using empty levels: [] throws:
TreeGroup.js: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'isLoading')
Steps to reproduce
- Configure Scheduler with
treeGroup: { levels: [] }
- Call
scheduler.scrollEventIntoView(event)
Root cause
TreeGroup.waitForLoad() accesses me.originalStore.isLoading without guarding for originalStore being undefined. When levels is empty, TreeGroup has not been transformed yet and originalStore is never assigned.
Expected behavior
No error. The call should work as if TreeGroup was not active.
Forum post
https://forum.bryntum.com/viewtopic.php?f=44&t=35255&p=179469#p179469
Bug description
Calling
scrollEventIntoView()on a Scheduler configured with TreeGroup feature using emptylevels: []throws:Steps to reproduce
treeGroup: { levels: [] }scheduler.scrollEventIntoView(event)Root cause
TreeGroup.waitForLoad()accessesme.originalStore.isLoadingwithout guarding fororiginalStorebeingundefined. Whenlevelsis empty, TreeGroup has not been transformed yet andoriginalStoreis never assigned.Expected behavior
No error. The call should work as if TreeGroup was not active.
Forum post
https://forum.bryntum.com/viewtopic.php?f=44&t=35255&p=179469#p179469