Fix bug preventing open from rendering

This commit is contained in:
Matthias 2023-05-07 12:52:41 +02:00
parent e1c96c4631
commit 96b4385bd1

View File

@ -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);
}