Skip to content

Commit 35c7b1c

Browse files
committed
fix summary bug, table data not taking into consideration possible arrays
1 parent a68a7f1 commit 35c7b1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/templates/portal-summary.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ <h1>Portal Summary</h1>
7373
props: ['data', 'summary_type', 'colors'],
7474
methods:{
7575
handleChartClick(label, color){
76-
filtered = this.tableData.filter(d => d.label == label);
76+
filtered = this.tableData.filter(d => d.label == label || d.label.includes(label));
7777
this.filter = label;
7878
this.bgColor = color;
7979
this.showDetails = true;
@@ -129,7 +129,7 @@ <h1>Portal Summary</h1>
129129
name: item['info']['title'],
130130
label: item['info'][field]['team'].toString()
131131
})
132-
if(typeof item['info'][field]['team'] !== 'string'){
132+
if(item['info'][field]['team'].constructor !== String){
133133
item['info'][field]['team'].forEach(team => {
134134
if(team in teams){
135135
teams[team]++

0 commit comments

Comments
 (0)