From 96b4385bd1bc572665f84ecb630cc7e178148d27 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 7 May 2023 12:52:41 +0200 Subject: [PATCH] Fix bug preventing open from rendering --- src/components/charts/CandleChart.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/charts/CandleChart.vue b/src/components/charts/CandleChart.vue index 00ce2a9d..909c8e2d 100644 --- a/src/components/charts/CandleChart.vue +++ b/src/components/charts/CandleChart.vue @@ -330,7 +330,7 @@ function updateChart(initial = false) { if ('main_plot' in props.plotConfig) { Object.entries(props.plotConfig.main_plot).forEach(([key, value]) => { const col = columns.findIndex((el) => el === key); - if (col > 1) { + if (col > 0) { if (!Array.isArray(chartOptions.value?.legend) && chartOptions.value?.legend?.data) { chartOptions.value.legend.data.push(key); }