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

fix (bar helper). Set x coordinate to 0 if date grater than xDate - 1 is not found #193

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

edgar-g-q
Copy link

@edgar-g-q edgar-g-q commented May 25, 2023

This is a PR to provide a workaround fix for #192
It is a simple solution that works, but not a clean solution imo. Here the reason why:
If I am defining a react state that I pass as a prop to the Gantt to control the viewMode, and I never set this viewMode to null, there is no reason why the viewMode inside some of the Gantt functions should be null at some point, making the entire application crash or enter an infinite loop. It would be better to figure out why the viewMode is set to null at some cases (when switching fast between viewModes several times).
Sadly, I do not have more time to investigate it, so I leave the decision of accepting / rejecting this PR up to you

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

Successfully merging this pull request may close these issues.

2 participants