saving-draft-fix
This commit is contained in:
parent
e6ff073e29
commit
b7939dead0
|
@ -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("saving draft")
|
||||
setSaving(true)
|
||||
if (props.shout?.published_at) {
|
||||
saveDraftToLocalStorage(form)
|
||||
|
|
Loading…
Reference in New Issue
Block a user