Skip to content

Commit 5f62c59

Browse files
committed
fix(ProjectManagement): remove temporary task filter causing UI inconsistency
The filter was incorrectly keeping temporary tasks during creation, leading to duplicate entries and UI state issues when server sync completes. This ensures tasks are properly filtered based on server state.
1 parent 40dfe76 commit 5f62c59

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

frontend/src/components/ProjectManagement.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1495,9 +1495,6 @@ export default function ProjectManagement({
14951495
const id = nid(lt.id);
14961496
const cid = nid((lt as any).clientId);
14971497

1498-
// If creatingTask is true and this is a tmp task, definitely keep it!
1499-
if (creatingTask && id.startsWith("tmp_")) return true;
1500-
15011498
return !serverIds.has(id) && (!cid || !serverClientIds.has(cid));
15021499
});
15031500

0 commit comments

Comments
 (0)