Fix error for unconfigured sources in Geometry Block

This commit is contained in:
Emmy Leke
2023-03-03 15:16:37 +01:00
committed by EmmyMay
parent 179b91e7ec
commit e45fe7e7b5
4 changed files with 50 additions and 50 deletions
@@ -7,7 +7,6 @@ interface FeedOptions {
moduleID: string;
resource: string;
titleField: string;
geometryField: string;
displayMarker: boolean;
displayPolygon: boolean;
}
@@ -20,7 +19,6 @@ const defOptions = {
prefilter: '',
resource: 'compose:record',
titleField: '',
geometryField: '',
displayMarker: false,
displayPolygon: true,
}
@@ -53,4 +51,8 @@ export default class Feed {
}
}
}
isValid (): boolean {
return this.options.moduleID !== NoID && !!this.geometryField
}
}