Skip to content

Commit 0bb3712

Browse files
authored
cms: fix layer validation (#118)
1 parent 55531c7 commit 0bb3712

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/src/cms/utils/layer-validation.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ export const LayerTypeValidation: CollectionBeforeValidateHook<Layer> = (args) =
1919
],
2020
});
2121
}
22-
if (data && data.type === LAYER_TYPE.CONTEXTUAL && data.indicators) {
22+
console.log(data);
23+
if (data && data.type === LAYER_TYPE.CONTEXTUAL && data.indicators?.length) {
2324
throw new ValidationError({
2425
collection: "layers",
2526
errors: [

0 commit comments

Comments
 (0)