diff --git a/library/composables/useMapInstance.js b/library/composables/useMapInstance.js index cf0d75b2b..5c56340a9 100644 --- a/library/composables/useMapInstance.js +++ b/library/composables/useMapInstance.js @@ -469,7 +469,12 @@ export function useMapInstance({ accessToken = window.MAP_TOKEN } if (!accessToken) { - console.error('No Mapbox access token provided. Pass "tk" in profile-config JSON or set window.MAP_TOKEN.') + // ONE warn per page, not an error per map: the UI already says "Map unavailable", and a page with + // several maps logged this 7x as console.error, which breaks the 0-errors bar (dx-shepherd, TKWARN). + if (typeof window !== 'undefined' && !window.__doxaNoTokenWarned) { + window.__doxaNoTokenWarned = true + console.warn('No Mapbox access token provided. Pass "tk" in profile-config JSON or set window.MAP_TOKEN.') + } return } if (!accessToken.startsWith('pk.')) {