From 0b2cf1c5efb9dfc050c3891068ac00c8823dc390 Mon Sep 17 00:00:00 2001 From: Maurice Date: Sat, 29 Aug 2026 16:06:38 +0200 Subject: [PATCH] fix(mobile): put the CARTO key back on the phone map settings preview too The third preview with the same shape, and the one that matters most while the crash is live: the phone layout is where someone would go to change the basemap when the desktop tab will not open. --- client/src/mobile/screens/settings/MSettingsMap.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/src/mobile/screens/settings/MSettingsMap.tsx b/client/src/mobile/screens/settings/MSettingsMap.tsx index a15de571c..dfc41398e 100644 --- a/client/src/mobile/screens/settings/MSettingsMap.tsx +++ b/client/src/mobile/screens/settings/MSettingsMap.tsx @@ -17,6 +17,7 @@ import { normalizeStyleForProvider, type GlMapProvider, } from '../../../components/Map/glProviders' +import { withTileApiKey } from '../../../utils/tileUrl' import MToggle from '../../components/MToggle' import { MSetCard, MSetEyebrow, MSetSelectRow, MSetInput, MSetButton, MSetHint, MSetRow } from './MSettingsUi' import MSetPickerSheet from './MSetPickerSheet' @@ -318,7 +319,9 @@ export default function MSettingsMap() { onMarkerClick: null, onMapClick: null, onMapContextMenu: null, - tileUrl: mapTileUrl, + // As on the desktop tab: the field holds what is being edited, so the + // key goes back on before the preview resolves the template. + tileUrl: withTileApiKey(mapTileUrl, cartoKey), fitKey: null, dayOrderMap: [], leftWidth: 0,