Skip to content

Commit

Permalink
Layers panel - Basemap group to only be expanded when summary tab is …
Browse files Browse the repository at this point in the history
…active
  • Loading branch information
SARodrigues committed Oct 4, 2024
1 parent 739d55e commit 39d958a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/containers/map/sidebar/layers-panel/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,19 @@ const LayersPanel: FCWithMessages = (): JSX.Element => {
<LayersGroup
name={t('terrestrial-data')}
datasets={terrestrialDatasets}
isOpen={['summary', 'terrestrial'].includes(tab)}
isOpen={['terrestrial'].includes(tab)}
loading={isFetchingDatasets}
/>
<LayersGroup
name={t('marine-data')}
datasets={marineDatasets}
isOpen={['summary', 'marine'].includes(tab)}
isOpen={['marine'].includes(tab)}
loading={isFetchingDatasets}
/>
<LayersGroup
name={t('basemap')}
datasets={basemapDatasets}
isOpen={true}
isOpen={['summary'].includes(tab)}
loading={isFetchingDatasets}
showDatasetsNames={false}
showBottomBorder={false}
Expand Down

0 comments on commit 39d958a

Please sign in to comment.