TypeError: Cannot read properties of undefined (reading 'parent')
mfaheemakhtar opened this issue · comments
Is there an existing issue for this?
- I have searched this repository's issues and believe that this is not a duplicate.
I'm using ...
React Scheduler
Current Behaviour
I am trying to use the custom plugin from #2820 but the scheduler is crashing with this error.
the item
array has no elements and reading item[0]
is causing the issue.
It seems to work correctly on the code sandbox. What might be the issue on my end?
Expected Behaviour
Should not crash.
Steps to Reproduce
No steps.
Works without the issue on sandbox: https://codesandbox.io/s/devextreme-react-scheduler-for-material-ui-forked-tu6csf?file=/index.js
Environment
- devextreme-reactive: 2.7.6
- react: 17.0.2
- browser: chrome (latest)
- bootstrap: none
- react-bootstrap: none
- material-ui: 4.12.3
Update: Changing cellDuration to 30 stopped crashing it. Not sure if it is just random or really works
Update: Not working.
<WeekView
startDayHour={0}
endDayHour={24}
cellDuration={30}
/>