From cac279eb9e55c069aef9bc81b50e17100ff86c25 Mon Sep 17 00:00:00 2001 From: iamsivin Date: Wed, 15 Apr 2026 21:34:27 +0530 Subject: [PATCH] chore: Clean up --- .../Pages/ArticleEditorPage/ArticleEditor.vue | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/app/javascript/dashboard/components-next/HelpCenter/Pages/ArticleEditorPage/ArticleEditor.vue b/app/javascript/dashboard/components-next/HelpCenter/Pages/ArticleEditorPage/ArticleEditor.vue index 11c118603..cb8b3c963 100644 --- a/app/javascript/dashboard/components-next/HelpCenter/Pages/ArticleEditorPage/ArticleEditor.vue +++ b/app/javascript/dashboard/components-next/HelpCenter/Pages/ArticleEditorPage/ArticleEditor.vue @@ -58,14 +58,9 @@ watch( } ); -// Parent increments refreshTick after article re-fetch completes. -// Syncing on this signal avoids visibility/fetch timing races. -watch( - () => props.refreshTick, - () => { - syncLocalState(); - } -); +// Parent bumps refreshTick after re-fetching on tab visibility, so the +// store already holds the latest article by the time this fires. +watch(() => props.refreshTick, syncLocalState); const debouncedSave = debounce(value => emit('saveArticle', value), 500, false);