mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-19 13:08:23 +02:00
Fix issue where multiple page reloads are needed to see selected store's tasks
Update React Query cache invalidation to include `/api/tasks` and ensure automatic cache invalidation when the selected store changes. Replit-Commit-Author: Agent Replit-Commit-Session-Id: e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce Replit-Commit-Checkpoint-Type: full_checkpoint
This commit is contained in:
1 parent
15cf7f32a1
commit
9d9344f52e
3 files changed
+4
-3
No files matched your search
@@ -266,7 +266,7 @@ export default function Tasks() {
|
||||
}
|
||||
};
|
||||
|
||||
const getDueDateStatus = (dueDate: string | null, status: string) => {
|
||||
const getDueDateStatus = (dueDate: Date | string | null, status: string) => {
|
||||
if (!dueDate || status === 'completed') return null;
|
||||
|
||||
const due = new Date(dueDate);
|
||||
|
||||
Reference in new issue
Block a user