mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
Fixed "Saving failed: undefined" error message in editor
no issue - if a ServerUnreachable error is triggered by a non-background-save then we'd show the expected custom alert and then immediately overwrite it because `savePost`'s catch was not expecting an `undefined` error
This commit is contained in:
parent
9105afe97c
commit
a6c6def7e1
@ -491,6 +491,11 @@ export default Controller.extend({
|
||||
|
||||
return post;
|
||||
} catch (error) {
|
||||
if (error === undefined) {
|
||||
// validation error or "handled" error from _saveTask
|
||||
return;
|
||||
}
|
||||
|
||||
// trigger upgrade modal if forbidden(403) error
|
||||
if (isHostLimitError(error)) {
|
||||
this.post.rollbackAttributes();
|
||||
|
Loading…
Reference in New Issue
Block a user