Skip to content

Commit bf32279

Browse files
committed
Fix - VueUiXy - Fix harmless console errors when a path has no M data due to null value only
1 parent f3a3ca3 commit bf32279

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/vue-ui-xy.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@
628628
<g v-for="(serie, i) in lineSet" :key="`serie_line_${i}`" :class="`serie_line_${i}`" :style="`opacity:${selectedScale ? selectedScale === serie.groupId ? 1 : 0.2 : 1};transition:opacity 0.2s ease-in-out`">
629629
<path
630630
data-cy="datapoint-line-coating-smooth"
631-
v-if="serie.smooth && serie.plots.length > 1"
631+
v-if="serie.smooth && serie.plots.length > 1 && !!serie.curve"
632632
:d="`M${serie.curve}`"
633633
:stroke="FINAL_CONFIG.chart.backgroundColor"
634634
:stroke-width="FINAL_CONFIG.line.strokeWidth + 1"
@@ -638,7 +638,7 @@
638638

639639
<path
640640
data-cy="datapoint-line-coating-straight"
641-
v-else-if="serie.plots.length > 1"
641+
v-else-if="serie.plots.length > 1 && !!serie.straight"
642642
:d="`M${serie.straight}`"
643643
:stroke="FINAL_CONFIG.chart.backgroundColor"
644644
:stroke-width="FINAL_CONFIG.line.strokeWidth + 1"
@@ -688,7 +688,7 @@
688688

689689
<path
690690
data-cy="datapoint-line-smooth"
691-
v-if="serie.smooth && serie.plots.length > 1"
691+
v-if="serie.smooth && serie.plots.length > 1 && !!serie.curve"
692692
:d="`M${serie.curve}`"
693693
:stroke="serie.color"
694694
:stroke-width="FINAL_CONFIG.line.strokeWidth"
@@ -699,7 +699,7 @@
699699

700700
<path
701701
data-cy="datapoint-line-straight"
702-
v-else-if="serie.plots.length > 1"
702+
v-else-if="serie.plots.length > 1 && !!serie.straight"
703703
:d="`M${serie.straight}`"
704704
:stroke="serie.color"
705705
:stroke-width="FINAL_CONFIG.line.strokeWidth"

0 commit comments

Comments
 (0)