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:
parent
cacd54b8c6
commit
4f1a92fb17
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user