From d95bf934481c4972669b7f081875cd5322d07f8c Mon Sep 17 00:00:00 2001 From: Jen Jones Arnesen Date: Sun, 22 Oct 2023 09:03:32 +0200 Subject: [PATCH] Revert "chore: use correct object when getting external basemaps" This reverts commit 063039f0ae3fbb3032b8a2f6635058133c00b82e. --- src/components/plugin/getBasemapConfig.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/plugin/getBasemapConfig.js b/src/components/plugin/getBasemapConfig.js index 226be38d2..11e4d42f5 100644 --- a/src/components/plugin/getBasemapConfig.js +++ b/src/components/plugin/getBasemapConfig.js @@ -10,10 +10,10 @@ async function getBasemaps(basemapId, defaultBasemapId, engine) { try { let externalBasemaps = [] if (isValidUid(basemapId) || isValidUid(defaultBasemapId)) { - const { externalLayers } = await engine.query({ + const externalLayers = await engine.query({ externalLayers: fetchExternalLayersQuery, }) - externalBasemaps = externalLayers.externalMapLayers + externalBasemaps = externalLayers .filter((layer) => layer.mapLayerPosition === 'BASEMAP') .map(createExternalLayer) }