mirror of
https://github.com/odoo/owl.git
synced 2025-10-06 19:59:41 +07:00
[FIX] component: properly validate multiple props
Because of a "break" statement instead of "continue", the check for valid props was stopping as soon as it met an optional props, which kind of invalidate the whole system. closes #717
This commit is contained in:
@@ -37,7 +37,7 @@ QWeb.utils.validateProps = function (Widget, props: Object) {
|
||||
if (propsDef[propName] && !propsDef[propName].optional) {
|
||||
throw new Error(`Missing props '${propName}' (component '${Widget.name}')`);
|
||||
} else {
|
||||
break;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
let isValid;
|
||||
|
||||
Reference in New Issue
Block a user