Skip to content

Commit

Permalink
Revert "chore: use correct object when getting external basemaps"
Browse files Browse the repository at this point in the history
This reverts commit 063039f.
  • Loading branch information
jenniferarnesen committed Oct 22, 2023
1 parent 04eb8a1 commit d95bf93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/plugin/getBasemapConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit d95bf93

Please sign in to comment.