Skip to content

Commit ce841fa

Browse files
Covered an edge case
1 parent a2adb52 commit ce841fa

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

components/src/components/Map/Component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,8 +335,10 @@ export default class Component extends (FieldComponent as any) {
335335

336336
isEmpty() {
337337
//This is in case a form designer makes the map read only and accidentally sets it as required
338-
339338
if (!this.component.allowSubmissions) return false;
339+
//
340+
if (this.getValue?.features?.length === this.component.numPoints)
341+
return false;
340342
return (
341343
this.getValue()?.features?.length === 0 ||
342344
this.getValue()?.features?.length === this.defaultValue?.features.length

0 commit comments

Comments
 (0)