From ae2b3ef844320382eec288ca8efde81b6dfeb8f6 Mon Sep 17 00:00:00 2001 From: Antoine Guenet Date: Mon, 7 Dec 2020 11:17:14 +0000 Subject: [PATCH] [FIX] web_editor: prevent traceback on open crop dialog --- addons/web_editor/static/src/js/editor/snippets.editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web_editor/static/src/js/editor/snippets.editor.js b/addons/web_editor/static/src/js/editor/snippets.editor.js index 6778da60d29..58ec48fa416 100644 --- a/addons/web_editor/static/src/js/editor/snippets.editor.js +++ b/addons/web_editor/static/src/js/editor/snippets.editor.js @@ -2455,7 +2455,7 @@ var SnippetsMenu = Widget.extend({ * @private */ _onDeactivateSnippet: function (ev) { - this._enableLastEditor(ev.data.previewMode); + this._enableLastEditor(ev && ev.data.previewMode); }, /**