Fixed the ability to return to the main post page after scheduling a post in lexical (#16970)

refs TryGhost/Team#3405
- BackgroundSave option sets post status as Draft. Don't need such
behaviour as a post already can have a different status when a user
leaves the page.
This commit is contained in:
Elena Baidakova 2023-06-08 12:20:07 +04:00 committed by GitHub
parent cacd54b8c6
commit 4f1a92fb17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -937,7 +937,7 @@ export default class LexicalEditorController extends Controller {
this.cancelAutosave();
this.autosaveTask.cancelAll();
}
await this.autosaveTask.perform({leavingEditor: true});
await this.autosaveTask.perform({leavingEditor: true, backgroundSave: false});
return transition.retry();
}