fixed correct projectId is used when navigating to DailyTask #46
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "pramod_Bug#97"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I have resolved the issue with the DailyTask page where the wrong project data was loading initially.
When navigating to the page with a projectId in the URL, the hook to fetch task data (useTaskList) was running before Redux had the correct project set. So,
Synced the projectId from the URL to Redux before the component initializes
Added a fallback to select the first accessible project if no projectId is in the URL
Delayed the task list fetch until the correct project is confirmed.