Fix error for unconfigured sources in Geometry Block
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user