From 2d37be241565c575a403b8b9a801da13c5a13856 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 7 May 2023 21:20:41 +0200 Subject: [PATCH] Fix pltconfig crashing in some cases --- src/components/charts/PlotConfigurator.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/components/charts/PlotConfigurator.vue b/src/components/charts/PlotConfigurator.vue index abda4a29..534af8ab 100644 --- a/src/components/charts/PlotConfigurator.vue +++ b/src/components/charts/PlotConfigurator.vue @@ -351,6 +351,14 @@ watch(selSubPlot, () => { selIndicatorName.value = ''; }); +watch( + () => plotStore.plotConfigName, + () => { + selIndicatorName.value = ''; + // selSubPlot.value = ''; + }, +); + onMounted(() => { // Deep clone and assign to editable plotStore.editablePlotConfig = deepClone(plotStore.plotConfig);