We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7fe6c8 commit 78c5278Copy full SHA for 78c5278
1 file changed
components/src/components/Map/Component.ts
@@ -335,10 +335,11 @@ export default class Component extends (FieldComponent as any) {
335
336
isEmpty() {
337
//This is in case a form designer makes the map read only and accidentally sets it as required
338
+
339
if (!this.component.allowSubmissions) return false;
340
return (
- this.getValue().features.length === 0 ||
341
- this.getValue().features.length === this.defaultValue?.features.length
+ this.getValue()?.features?.length === 0 ||
342
+ this.getValue()?.features?.length === this.defaultValue?.features.length
343
);
344
}
345
0 commit comments