Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions frontend/src/components/HomeComponents/Tasks/Tasks.tsx
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added 1-second delay before auto-sync to handle async job queue timing - tested and working smoothly.

Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,10 @@ export const Tasks = (
annotations,
});

// Wait for backend job to complete before syncing (job queue is async)
await new Promise((resolve) => setTimeout(resolve, 1000));

await syncTasksWithTwAndDb();
setIsAddTaskOpen(false);
} catch (error) {
console.error('Failed to edit task:', error);
Expand Down
Loading