Skip to content

Commit

Permalink
🐛 Make reactive change legendurls
Browse files Browse the repository at this point in the history
  • Loading branch information
volterra79 committed Dec 20, 2024
1 parent 9ae00cb commit d3b4d26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Catalog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
:class = "{ active: 'legend' === activeTab }"
>
<div v-for = "t in tree.tree" class = "legend-item"> <!-- TODO: check if such nesting level really necessary.. -->
<figure v-for = "url in t.legendurls">
<figure v-for = "url in t.legendurls" :key ="url">
<bar-loader :loading="url.loading" />
<img
v-show = "!url.loading && !url.error"
Expand Down
1 change: 1 addition & 0 deletions src/map/layers/layersstore.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ export class LayersStore extends G3WObject {
*/
bbox: { minx, miny, maxx, maxy },
nodes: layerstree,
legendurls: [], //@since 3.11.0 Set reactive change legend urls on check TOC visible layers
};

if (layerstree.length > 0) {
Expand Down

0 comments on commit d3b4d26

Please sign in to comment.