diff --git a/client/src/mobile/screens/admin/MAdminDefaultUserSettings.tsx b/client/src/mobile/screens/admin/MAdminDefaultUserSettings.tsx index 7b089d00a..86fbb9650 100644 --- a/client/src/mobile/screens/admin/MAdminDefaultUserSettings.tsx +++ b/client/src/mobile/screens/admin/MAdminDefaultUserSettings.tsx @@ -6,7 +6,7 @@ import { useToast } from '../../../components/shared/Toast' import { MapView } from '../../../components/Map/MapView' import { SYMBOLS, currenciesWith } from '../../../components/Budget/BudgetPanel.constants' import { getApiErrorMessage, type DistanceUnit, type Place } from '../../../types' -import { normalizeTileUrl } from '../../../utils/tileUrl' +import { normalizeTileUrl, withTileApiKey } from '../../../utils/tileUrl' import { MAPBOX_DEFAULT_STYLE, defaultStyleForProvider, @@ -331,7 +331,9 @@ export default function MAdminDefaultUserSettings(): React.ReactElement { onMapContextMenu: null, center: [48.8566, 2.3522], zoom: 10, - tileUrl: mapTileUrl, + // As on the other three previews: the field holds what is being + // edited, so the key goes back on before the template resolves. + tileUrl: withTileApiKey(mapTileUrl, cartoKey), fitKey: null, dayOrderMap: [], leftWidth: 0,