summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web_editor/static/src')
-rw-r--r--addons/web_editor/static/src/js/editor/snippets.options.js4
1 files changed, 4 insertions, 0 deletions
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,
};