Skip to content

Commit

Permalink
Merge pull request #959 from geoadmin/bug-PB-709-3d-config-timestamp
Browse files Browse the repository at this point in the history
PB-709 : also change 3D specific config timestamp - #patch
  • Loading branch information
pakb authored Jun 25, 2024
2 parents 0e91a94 + d3ac186 commit e2402fb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/store/modules/layers.store.js
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,13 @@ const actions = {
year: year,
dispatcher,
})
// if this layer has a 3D counterpart, we also update its timestamp (keep it in sync)
if (layer.idIn3d) {
const layerIn3d = getters.getLayerConfigById(layer.idIn3d)
if (layerIn3d?.timeConfig) {
commit('setLayerYear', { layer: layerIn3d, year, dispatcher })
}
}
},

/**
Expand Down

0 comments on commit e2402fb

Please sign in to comment.