Fix: fix small background crashes

This commit is contained in:
Pieter Vander Vennet 2025-08-19 17:22:02 +02:00
parent d8f7fe3b01
commit a073b9de94
2 changed files with 4 additions and 1 deletions

View file

@ -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") {

View file

@ -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) {