fixed correct projectId is used when navigating to DailyTask #46

Merged
vikas.nale merged 1 commits from pramod_Bug#97 into Issues_April_4W 2025-04-22 10:33:05 +00:00
Collaborator

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.

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.
pramod.mahajan added 1 commit 2025-04-21 17:10:28 +00:00
vikas.nale merged commit d64b6c6134 into Issues_April_4W 2025-04-22 10:33:05 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: admin/marco.pms.web#46
No description provided.