Skip to content

Commit f58b45e

Browse files
jetfueldaming-lu
authored andcommitted
Fix the issue where the tagsList in Histogram will return undefined items. (#250)
1 parent 2dd3de5 commit f58b45e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

frontend/src/histogram/Histogram.san

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export default {
6262
run,
6363
tag: tags[run][tag]
6464
};
65-
});
65+
}).filter(item => item.tag !== undefined);
6666
return {
6767
tagList,
6868
tag,

frontend/src/scalars/ui/chart.san

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ export default {
129129
this.data.set('downloadType', runsItems[0].value);
130130
},
131131

132+
// Create a Scalar Chart, initialize it with default settings, then load datas
132133
initChart(tagInfo) {
133134
this.createChart();
134135
this.setChartsOptions(tagInfo);
@@ -141,6 +142,7 @@ export default {
141142
},
142143

143144
setChartsOptions({tagList, tag}) {
145+
// Create two lines, one line is original, the other line is for smoothing
144146
let seriesOption = tagList.map(item => [
145147
{
146148
name: item.run,

0 commit comments

Comments
 (0)