[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>
This commit is contained in:
Benjamin Vray
2020-04-02 23:54:12 +00:00
parent 0cb6f111b8
commit 98161fc61a
@@ -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);