From fe93da079c27c2487f19bafad40e3f38d94a4f3f Mon Sep 17 00:00:00 2001 From: iamsivin Date: Wed, 15 Apr 2026 21:36:09 +0530 Subject: [PATCH] chore: Minor fix --- .../Pages/ArticleEditorPage/ArticleEditor.vue | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 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 cb8b3c963..9c3fa074a 100644 --- a/app/javascript/dashboard/components-next/HelpCenter/Pages/ArticleEditorPage/ArticleEditor.vue +++ b/app/javascript/dashboard/components-next/HelpCenter/Pages/ArticleEditorPage/ArticleEditor.vue @@ -58,9 +58,16 @@ watch( } ); -// 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); +// Parent bumps refreshTick after re-fetching on tab visibility. Skip +// the sync while a save is in flight so we don't overwrite edits the +// user just made. +watch( + () => props.refreshTick, + () => { + if (props.isUpdating) return; + syncLocalState(); + } +); const debouncedSave = debounce(value => emit('saveArticle', value), 500, false);