@embeddable.com/sdk-react 2.2.12 → 2.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.esm.js +4 -1
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +4 -1
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -600,10 +600,13 @@ const validateVariableEvents = (meta) => {
|
|
|
600
600
|
errors.push(`${path}: property "${event.property}" is not defined`);
|
|
601
601
|
return;
|
|
602
602
|
}
|
|
603
|
+
const path = formatErrorPath(["variables", idx]);
|
|
603
604
|
if (definedProperty.type !== variableConfig.type) {
|
|
604
|
-
const path = formatErrorPath(["variables", idx]);
|
|
605
605
|
errors.push(`${path}: the type of the variable "${variableConfig.name}" and the type of the property "${event.property}" do not match`);
|
|
606
606
|
}
|
|
607
|
+
if (Boolean(definedProperty.array) !== Boolean(variableConfig.array)) {
|
|
608
|
+
errors.push(`${path}: the array of the variable "${variableConfig.name}" and the array of the property "${event.property}" do not match`);
|
|
609
|
+
}
|
|
607
610
|
});
|
|
608
611
|
}
|
|
609
612
|
});
|