diff --git a/addons/web_editor/static/src/js/editor/snippets.options.js b/addons/web_editor/static/src/js/editor/snippets.options.js index 96dab471e98..36ae9e04137 100644 --- a/addons/web_editor/static/src/js/editor/snippets.options.js +++ b/addons/web_editor/static/src/js/editor/snippets.options.js @@ -349,6 +349,10 @@ const UserValueWidget = Widget.extend({ * @param {boolean} [previewMode=false] */ _notifyValueChange: function (previewMode) { + if (!this._methodsNames.length) { + return; + } + const data = { widget: this, };