Skip to content

Commit

Permalink
Merge pull request #4237 from apostrophecms/pro-4540-save-to-update
Browse files Browse the repository at this point in the history
fix typo with onSave navigate
  • Loading branch information
haroun authored Jul 27, 2023
2 parents 5b8ff74 + 641c66c commit 5aabc2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ to props of their choosing.

### Fixes

* `AposDocEditor` `onSave` method signature. We now always expect an object when a parameter is passed to the function to check
the value of `navigate` flag.
* Fixes a problem in the rich text editor where the slash would not be deleted after item selectin from the insert menu.
* Modules that have a `public` or `i18n` subdirectory no longer generate a
warning if they export no code.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ export default {
await this.restore(this.original);
await this.loadDoc();
},
async onSave(navigate = false) {
async onSave({ navigate = false } = {}) {
if (this.canPublish || !this.manuallyPublished) {
await this.save({
andPublish: this.manuallyPublished,
Expand Down

0 comments on commit 5aabc2c

Please sign in to comment.