Refactor type handling for response handler to fix dangerous casting (#126)

This commit is contained in:
Keavon Chambers
2021-05-15 01:02:33 -07:00
committed by GitHub
parent a1b80db51f
commit 1419f3bc6b
3 changed files with 111 additions and 44 deletions

View File

@@ -9,7 +9,7 @@
<LayoutCol :class="'list'">
<div class="layer-row" v-for="layer in layers" :key="layer.path">
<div class="layer-visibility">
<IconButton @click="toggleLayerVisibility(layer)" :size="24" :title="layer.visible ? 'Visible' : 'Hidden'">
<IconButton @click="toggleLayerVisibility(layer.path)" :size="24" :title="layer.visible ? 'Visible' : 'Hidden'">
<EyeVisible v-if="layer.visible" />
<EyeHidden v-if="!layer.visible" />
</IconButton>