[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user