Skip to content

Commit

Permalink
Merge pull request #681 from PaulHax/layer-slider-fix
Browse files Browse the repository at this point in the history
fix(LayerProperties): don't show slider until view loads layer
  • Loading branch information
PaulHax authored Nov 13, 2024
2 parents 0021740 + 86a2a79 commit 048b801
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/LayerProperties.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,12 @@ export default defineComponent({
const blendConfig = computed(
() =>
// assume one 2D view has mounted
layerConfigs.value.find(({ config }) => config)!.config!.blendConfig
// may be undefined if a 2D view has not been mounted
layerConfigs.value.find(({ config }) => config)?.config?.blendConfig
);
const setBlendConfig = (key: keyof BlendConfig, value: any) => {
if (layerConfigs.value.length === 0) return;
layerConfigs.value.forEach(({ viewID }) =>
layerColoringStore.updateBlendConfig(viewID, layerID.value, {
[key]: value,
Expand Down

0 comments on commit 048b801

Please sign in to comment.