From 9afaba88a3cb7bb675ffaf8ce7c3cfcb774dd02f Mon Sep 17 00:00:00 2001 From: Pedro <54309282+prodriguezxyz@users.noreply.github.com> Date: Mon, 20 Apr 2026 15:42:48 +0200 Subject: [PATCH] fix(frontend): refresh task list after sync The syncTasks action posted to /api/sync but never refetched, so the Vuex state went stale until a manual page reload. Align with deleteTasks/updateTasks by dispatching fetchTasks on completion. Co-Authored-By: Claude Opus 4.7 (1M context) --- frontend/store/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/store/index.ts b/frontend/store/index.ts index 710d4fd..ece1be7 100644 --- a/frontend/store/index.ts +++ b/frontend/store/index.ts @@ -94,8 +94,9 @@ export const actions: ActionTree = { await context.dispatch('fetchTasks'); }, - async syncTasks(_context) { + async syncTasks(context) { await this.$axios.$post('/api/sync'); + await context.dispatch('fetchTasks'); } };