forked from MapComplete/MapComplete
Fix: fix small background crashes
This commit is contained in:
parent
d8f7fe3b01
commit
a073b9de94
2 changed files with 4 additions and 1 deletions
|
@ -209,6 +209,9 @@ export default class FavouritesFeatureSource extends StaticFeatureSource {
|
|||
continue
|
||||
}
|
||||
const store = featureProperties.getStore(id)
|
||||
if(store === undefined){
|
||||
continue
|
||||
}
|
||||
const origValue = store.data._favourite
|
||||
if (detected.indexOf(id) >= 0) {
|
||||
if (origValue !== "yes") {
|
||||
|
|
|
@ -291,7 +291,7 @@ In the case that MapComplete is pointed to the testing grounds, the edit will be
|
|||
seen.add(ks)
|
||||
uniq.push(img)
|
||||
}
|
||||
} else {
|
||||
} else if(ks){
|
||||
const ksNoNull = Lists.noNull(ks)
|
||||
const hasBeenSeen = ksNoNull.some((k) => seen.has(k))
|
||||
if (!hasBeenSeen) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue