diff options
| author | Benjamin Vray <bvr@odoo.com> | 2020-04-02 12:46:17 +0000 |
|---|---|---|
| committer | Benjamin Vray <bvr@odoo.com> | 2020-04-02 23:54:12 +0000 |
| commit | 98161fc61ab4667d0333975b2639547ec8a031fd (patch) | |
| tree | 2c5213d62f4fb25eca354261c6bf13d94e88cf15 /addons/web_editor/static/src | |
| parent | 0cb6f111b8eb420044eb2636710570b56d753e67 (diff) | |
[FIX] web_editor: fix updateui method
replace the "return" with "continue". What should have been done when
the loop that was originally a "foreach" became a "for" loop.
closes odoo/odoo#48919
X-original-commit: 8af8e6ddb2be9a0c57356d075e092b8da42662f0
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/web_editor/static/src')
| -rw-r--r-- | addons/web_editor/static/src/js/editor/snippets.options.js | 4 |
1 files changed, 2 insertions, 2 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 235cb0a8d17..71504e2a959 100644 --- a/addons/web_editor/static/src/js/editor/snippets.options.js +++ b/addons/web_editor/static/src/js/editor/snippets.options.js @@ -1738,14 +1738,14 @@ const SnippetOptionWidget = Widget.extend({ if (params.applyTo) { const $firstSubTarget = this.$(params.applyTo).eq(0); if (!$firstSubTarget.length) { - return; + continue; } obj = createPropertyProxy(this, '$target', $firstSubTarget); } const value = await this._computeWidgetState.call(obj, methodName, params); if (value === undefined) { - return; + continue; } const normalizedValue = this._normalizeWidgetValue(value); widget.setValue(normalizedValue, methodName); |
