We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55531c7 commit 0bb3712Copy full SHA for 0bb3712
app/src/cms/utils/layer-validation.ts
@@ -19,7 +19,8 @@ export const LayerTypeValidation: CollectionBeforeValidateHook<Layer> = (args) =
19
],
20
});
21
}
22
- if (data && data.type === LAYER_TYPE.CONTEXTUAL && data.indicators) {
+ console.log(data);
23
+ if (data && data.type === LAYER_TYPE.CONTEXTUAL && data.indicators?.length) {
24
throw new ValidationError({
25
collection: "layers",
26
errors: [
0 commit comments