From 4f1a92fb17c17a090880bbc3ae3af84f330c3e01 Mon Sep 17 00:00:00 2001 From: Elena Baidakova Date: Thu, 8 Jun 2023 12:20:07 +0400 Subject: [PATCH] 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. --- ghost/admin/app/controllers/lexical-editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/admin/app/controllers/lexical-editor.js b/ghost/admin/app/controllers/lexical-editor.js index 984ae7fbfb..a75061792f 100644 --- a/ghost/admin/app/controllers/lexical-editor.js +++ b/ghost/admin/app/controllers/lexical-editor.js @@ -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(); }