Fix pltconfig crashing in some cases

This commit is contained in:
Matthias 2023-05-07 21:20:41 +02:00
parent 62736a0678
commit 2d37be2415

View File

@ -351,6 +351,14 @@ watch(selSubPlot, () => {
selIndicatorName.value = ''; selIndicatorName.value = '';
}); });
watch(
() => plotStore.plotConfigName,
() => {
selIndicatorName.value = '';
// selSubPlot.value = '';
},
);
onMounted(() => { onMounted(() => {
// Deep clone and assign to editable // Deep clone and assign to editable
plotStore.editablePlotConfig = deepClone(plotStore.plotConfig); plotStore.editablePlotConfig = deepClone(plotStore.plotConfig);