mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-18 21:16:47 +00:00
fix(mobile): the phone admin map preview needs the CARTO key too
The fourth preview with the same shape, missed when the other three were fixed. Sonar pointed at it: the desktop and phone admin pages are near-identical, so the duplication report named the file the change had not reached.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user