-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Cannot read properties of undefined (reading 'model') when updating rows and tasks #227
Comments
Any chance you could provide the error call stack? |
Thank you. While I am fixing the issue, for an immediate fix, you can try checking if you are setting a task with a resourceId for a row that does not exist. |
Are there any updates? I faced the same problem. Tasks contain only existing UPD: I noticed that my tasks had two item with the same
UPD2: I don't know how it works, but resetting in this way works (when I reset tasks at first, and then reset rows in the queue, exactly in this sequence). And then I can fill it together again (again in the queue)
|
@roman-yukhno-axon I was testing this on v4.4.2 that was just released and it seems like using |
@ANovokmet it works fine now (in 4.4.2). I try to set both new rows and tasks and it works without flushing it sequentally. Thanks!
|
i have error too, when i using gantt.removeTask(id) and set it again it error in version 4.4.2, but if i using version 4.2.4 it work |
I am encountering an issue when updating the rows and tasks in svelte-gantt version "^4.3.2". I receive the following error:
Here is a screenshot of my rows and tasks data:
I am using the method gantt.set({ rows, tasks }) to update the data.
The text was updated successfully, but these errors were encountered: