From f78aa9d959fe99d79f415a72b1ce95dfce522f7d Mon Sep 17 00:00:00 2001 From: Paul Elliott Date: Mon, 30 Oct 2023 23:30:42 -0400 Subject: [PATCH] fix(layers): fix initialization bugs when less than all views mounted If configured for axial only view, then add a layer, layer properties GUI would just try to get first view config (Sagittal?), which did not exist. If a layer was created, without the view mounted, the colorBy layer config would not be set, and the layer would be invisible. --- src/components/LayerProperties.vue | 17 +++++------------ src/components/VtkTwoView.vue | 14 +++++++++----- src/store/view-configs/layers.ts | 17 +++-------------- 3 files changed, 17 insertions(+), 31 deletions(-) diff --git a/src/components/LayerProperties.vue b/src/components/LayerProperties.vue index 0bac2cedb..83d0cb67b 100644 --- a/src/components/LayerProperties.vue +++ b/src/components/LayerProperties.vue @@ -1,5 +1,5 @@