mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
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
1 changed files with 1 additions and 1 deletions
|
@ -937,7 +937,7 @@ export default class LexicalEditorController extends Controller {
|
||||||
this.cancelAutosave();
|
this.cancelAutosave();
|
||||||
this.autosaveTask.cancelAll();
|
this.autosaveTask.cancelAll();
|
||||||
}
|
}
|
||||||
await this.autosaveTask.perform({leavingEditor: true});
|
await this.autosaveTask.perform({leavingEditor: true, backgroundSave: false});
|
||||||
return transition.retry();
|
return transition.retry();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue