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