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

[Gantt] Year view throws an error if the Task start and end date are null #4305

Open
yanmariomenev opened this issue May 16, 2024 · 0 comments

Comments

@yanmariomenev
Copy link
Contributor

yanmariomenev commented May 16, 2024

Describe the bug
This error only happens to the year view and the rest of the views are not throwing the Error: Cannot read properties of null (reading 'getFullYear') error. In general, the Task required the start and end date, but we can avoid throwing the error in the year view.

Another side effect is due to the error the year view tasks rendering is also breaking:
Screenshot 2024-05-17 at 12 32 56

To Reproduce
Open the following example and choose the year view from the dropdown options:
https://stackblitz.com/edit/angular-rbzrjk?file=src%2Fapp%2Fhierarchical-data.ts,src%2Fapp%2Fapp.module.ts
Check the console for the error and you can change to other views to see that the error isn't present.

Expected behavior
The error to not be thrown and the tasks to render like the rest of the views. The error can be exchanged for a warning message.

Screen recording*

Year view breaking the task rendering:

Screen.Recording.2024-05-17.at.11.39.09.mov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant