From a38ff16ffef7f1af37acb13adb6857a34f155e53 Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Mon, 27 Jan 2025 23:26:17 +0100 Subject: [PATCH] Attempt to fix https://source.mapcomplete.org/MapComplete/MapComplete/issues/2300 --- src/Logic/Web/NameSuggestionIndex.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Logic/Web/NameSuggestionIndex.ts b/src/Logic/Web/NameSuggestionIndex.ts index cbd739737..f25764999 100644 --- a/src/Logic/Web/NameSuggestionIndex.ts +++ b/src/Logic/Web/NameSuggestionIndex.ts @@ -214,9 +214,7 @@ export default class NameSuggestionIndex { for (const nsiItem of actualBrands) { const tags = nsiItem.tags const frequency = frequencies[nsiItem.displayName] - const iconUrl = this.getIconExternalUrl(nsiItem, type) - const hasIcon = iconUrl !== undefined - const icon = hasIcon ? this.getIconUrl(nsiItem) : undefined + const icon = this.getIconUrl(nsiItem) mappings.push({ if: new Tag(type, tags[type]), addExtraTags: Object.keys(tags)