mirror of
https://github.com/freqtrade/frequi.git
synced 2024-11-26 13:05:15 +00:00
Fix bug preventing open from rendering
This commit is contained in:
parent
e1c96c4631
commit
96b4385bd1
|
@ -330,7 +330,7 @@ function updateChart(initial = false) {
|
||||||
if ('main_plot' in props.plotConfig) {
|
if ('main_plot' in props.plotConfig) {
|
||||||
Object.entries(props.plotConfig.main_plot).forEach(([key, value]) => {
|
Object.entries(props.plotConfig.main_plot).forEach(([key, value]) => {
|
||||||
const col = columns.findIndex((el) => el === key);
|
const col = columns.findIndex((el) => el === key);
|
||||||
if (col > 1) {
|
if (col > 0) {
|
||||||
if (!Array.isArray(chartOptions.value?.legend) && chartOptions.value?.legend?.data) {
|
if (!Array.isArray(chartOptions.value?.legend) && chartOptions.value?.legend?.data) {
|
||||||
chartOptions.value.legend.data.push(key);
|
chartOptions.value.legend.data.push(key);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user