Skip to content

Commit 1a453a3

Browse files
Merge branch 'main' into FORMS-2538-pagination-errors
2 parents 4619003 + 7893763 commit 1a453a3

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

components/src/components/Map/Component.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,9 +336,12 @@ export default class Component extends (FieldComponent as any) {
336336
isEmpty() {
337337
//This is in case a form designer makes the map read only and accidentally sets it as required
338338
if (!this.component.allowSubmissions) return false;
339+
//
340+
if (this.getValue?.features?.length === this.component.numPoints)
341+
return false;
339342
return (
340-
this.getValue().features.length === 0 ||
341-
this.getValue().features.length === this.defaultValue?.features.length
343+
this.getValue()?.features?.length === 0 ||
344+
this.getValue()?.features?.length === this.defaultValue?.features.length
342345
);
343346
}
344347

0 commit comments

Comments
 (0)