Skip to content

Commit

Permalink
Disable no-underscore-dangle in base layer
Browse files Browse the repository at this point in the history
  • Loading branch information
louptheron committed Nov 6, 2023
1 parent b15bac5 commit 39b8cfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/features/map/layers/BaseLayer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ function UnmemoizedBaseLayer() {

function showAnotherBaseLayer() {
const olLayers = monitorfishMap.getLayers()
// eslint-disable no-underscore-dangle
/* eslint-disable no-underscore-dangle */
// @ts-ignore
const layerToRemove = olLayers.getArray().find(layer => layer.className_ === LayerProperties.BASE_LAYER.code)
// eslint-enable no-underscore-dangle
/* eslint-enable no-underscore-dangle */

olLayers.insertAt(0, baseLayersObjects[selectedBaseLayer]())

Expand Down

0 comments on commit 39b8cfb

Please sign in to comment.