From bd0fdeeb1fb277e6e674e13106d0667cc5b2d4a0 Mon Sep 17 00:00:00 2001 From: Untone Date: Fri, 3 May 2024 01:39:28 +0300 Subject: [PATCH] saveDraft-fix --- src/components/Views/EditView/EditView.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Views/EditView/EditView.tsx b/src/components/Views/EditView/EditView.tsx index 0fe97eaf..625d3a59 100644 --- a/src/components/Views/EditView/EditView.tsx +++ b/src/components/Views/EditView/EditView.tsx @@ -187,7 +187,8 @@ export const EditView = (props: Props) => { const autoSave = async () => { const hasChanges = !deepEqual(form, prevForm) const hasTopic = Boolean(form.mainTopic) - if (hasChanges && hasTopic) { + if (hasChanges || hasTopic) { + console.debug('[EditView.autoSave] shout has topic') setSaving(true) if (props.shout?.published_at) { saveDraftToLocalStorage(form)