Skip to content
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

Open
gubeils opened this issue Jun 20, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@gubeils
Copy link

gubeils commented Jun 20, 2024

I am encountering an issue when updating the rows and tasks in svelte-gantt version "^4.3.2". I receive the following error:

TypeError: Cannot read properties of undefined (reading 'model')

image

Here is a screenshot of my rows and tasks data:
image

I am using the method gantt.set({ rows, tasks }) to update the data.

@ANovokmet ANovokmet added the bug Something isn't working label Jun 24, 2024
@ANovokmet ANovokmet self-assigned this Jun 24, 2024
@ANovokmet
Copy link
Owner

Any chance you could provide the error call stack?

@gubeils
Copy link
Author

gubeils commented Jun 25, 2024

image

image

image

image

@ANovokmet
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants