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

Issue with SvelteGanttDependencies Module and Data Reactivity #248

Open
SebastianMunaretto opened this issue Oct 18, 2024 · 0 comments
Open

Comments

@SebastianMunaretto
Copy link

Hi there,

I'm currently working on a feature using the SvelteGanttDependencies module, and I'm encountering an unexpected issue related to the reactive update of the tasks, especially whiles using dependencies.

As seen in the image below I defined a dependency between two tasks. And in the top left corner I have a select box that allows me to switch from one project to the other. The issue here is that when updating the options object of the svelte gantt component and updating the rows and the tasks based on the newly choosen project I get the following error in my browser console.

Uncaught (in promise) TypeError: fromTask is undefined
    update Dependency.svelte:18
    update scheduler.js:115
    flush scheduler.js:79

As far as my research goes this trackes back to the following code snippet.

Below you find screenshots of what I see when switching from one project to the other:
Project 1:
image

Project 2:
image

Note that the previous dependency stays in the gantt although no dependencies are present in Project 2.

(Don't mind the arrow icons of the tree view not loading, I am using a depracated fontawesome version)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant