diff --git a/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js b/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js index 716f7db3087..5048df1bf0e 100644 --- a/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js +++ b/addons/web_editor/static/src/js/wysiwyg/wysiwyg.js @@ -3007,6 +3007,9 @@ export class Wysiwyg extends Component { return record; } _isLastDocumentStale() { + if (!this._serverLastStepId) { + return false; + } return !this.odooEditor.historyGetBranchIds().includes(this._serverLastStepId); } /**