Merge pull request 'Make estimateNumberOfImages work for non-string values' (#2405) from ilja_space/MapComplete:fix_pictures_not_showing into develop

Reviewed-on: MapComplete/MapComplete#2405
This commit is contained in:
Pieter Vander Vennet 2025-05-03 12:23:55 +02:00
commit 9d19cdcec2

View file

@ -96,7 +96,7 @@ export default class AllImageProviders {
for (const prefix of allPrefixes) {
for (const k in tags) {
const v = tags[k]
if (!v) {
if (!v || typeof(v) !== 'string') {
continue
}
if (AllImageProviders.dontLoadFromPrefixes.some(prefix => v.startsWith(prefix))) {