saveDraft-fix
This commit is contained in:
parent
a89a9bb1f4
commit
bd0fdeeb1f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user