forked from MapComplete/MapComplete
Fix: fix possible causes for #2486
This commit is contained in:
parent
3e4a2593ac
commit
58cf4863ed
2 changed files with 4 additions and 1 deletions
|
@ -608,7 +608,7 @@ class MappedStore<TIn, T> extends Store<T> {
|
|||
if (!this._callbacksAreRegistered) {
|
||||
return
|
||||
}
|
||||
this._upstreamPingCount = this._upstreamCallbackHandler.pingCount
|
||||
this._upstreamPingCount = this._upstreamCallbackHandler?.pingCount
|
||||
this._callbacksAreRegistered = false
|
||||
this._unregisterFromUpstream()
|
||||
this._unregisterFromExtraStores?.forEach((unr) => unr())
|
||||
|
|
|
@ -101,6 +101,9 @@ export class PointRenderingLayer {
|
|||
}>[], locations: Set<PointRenderingLocation>): (Feature<Point, { id: string }> & {
|
||||
locationType: PointRenderingLocation
|
||||
})[] {
|
||||
if(!features){
|
||||
return []
|
||||
}
|
||||
const resultingFeatures: (Feature<Point, { id: string }> & { locationType: PointRenderingLocation })[] = []
|
||||
|
||||
function registerFeature(feature: Feature<any, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue