FilteringFeatureSource can now handle undefined values
This commit is contained in:
parent
057b4a3192
commit
d7f8ff01d5
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ export default class FilteringFeatureSource implements FeatureSourceForLayer, Ti
|
|||
const layer = this.upstream.layer;
|
||||
const features: { feature: any; freshness: Date }[] = (this.upstream.features.data ?? []);
|
||||
const includedFeatureIds = new Set<string>();
|
||||
const newFeatures = features.filter((f) => {
|
||||
const newFeatures = (features ?? []).filter((f) => {
|
||||
|
||||
self.registerCallback(f.feature)
|
||||
|
||||
|
|
Loading…
Reference in a new issue