Skip to content

Commit

Permalink
fix: fix sonar errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Remcoman committed Oct 23, 2023
1 parent 60fe425 commit e5d4a11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/CombineLayerPanelItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
>
<span>{{ title }}</span>
<button class="layerpanel-item__collapse" @click.stop="toggleCollapse">
<img class="layerpanel-item__collapse-icon" :src="`${publicPath}icons/baseline-keyboard_arrow_up-24px.svg`" />
<img class="layerpanel-item__collapse-icon" :src="`${publicPath}icons/baseline-keyboard_arrow_up-24px.svg`" alt="" />
</button>
</h3>

Expand Down
6 changes: 3 additions & 3 deletions src/lib/leaflet-utils/layer-factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ import './cluster-icon.css'

export default function createLayer (layer, callbacks, abortSignal) {
if (layer.type === 'json' && layer.geojson) {
return createGeoJson(layer, callbacks, abortSignal)
return createGeoJson(layer)
} else if (layer.type === 'cluster') {
return createCluster(layer, callbacks, abortSignal)
return createCluster(layer, callbacks)
} else if (layer.type === 'tile') {
return createTile(layer, callbacks, abortSignal)
return createTile(layer)
} else if (!layer.hideWms) {
return createWms(layer, callbacks, abortSignal)
} else {
Expand Down

0 comments on commit e5d4a11

Please sign in to comment.