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 f21cb7a80ff..38b3045040c 100644 --- a/addons/web_editor/static/src/js/editor/snippets.options.js +++ b/addons/web_editor/static/src/js/editor/snippets.options.js @@ -2059,7 +2059,7 @@ const SnippetOptionWidget = Widget.extend({ if (params.applyTo) { const $subTargets = this.$(params.applyTo); - const proms = _.each($subTargets, subTargetEl => { + const proms = _.map($subTargets, subTargetEl => { const proxy = createPropertyProxy(this, '$target', $(subTargetEl)); return this[methodName].call(proxy, previewMode, widgetValue, params); });