saveDraft-fix
This commit is contained in:
parent
a89a9bb1f4
commit
bd0fdeeb1f
|
@ -187,7 +187,8 @@ export const EditView = (props: Props) => {
|
||||||
const autoSave = async () => {
|
const autoSave = async () => {
|
||||||
const hasChanges = !deepEqual(form, prevForm)
|
const hasChanges = !deepEqual(form, prevForm)
|
||||||
const hasTopic = Boolean(form.mainTopic)
|
const hasTopic = Boolean(form.mainTopic)
|
||||||
if (hasChanges && hasTopic) {
|
if (hasChanges || hasTopic) {
|
||||||
|
console.debug('[EditView.autoSave] shout has topic')
|
||||||
setSaving(true)
|
setSaving(true)
|
||||||
if (props.shout?.published_at) {
|
if (props.shout?.published_at) {
|
||||||
saveDraftToLocalStorage(form)
|
saveDraftToLocalStorage(form)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user