Skip to content

Commit 4a74451

Browse files
committed
fix workaround in translation of tables, remove useless character
1 parent f1b60e2 commit 4a74451

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/components/reports/NestedReportCharts.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<b-tr v-for="(yAxis, yIndex) in rendered_chart_to_table['overall']['labels']"
2828
:key="yAxis[0] + 'g'">
2929
<b-td style="width: 20%">
30-
{{ $t(yAxis[0]) }}
30+
{{ Array.isArray(yAxis) ? yAxis[0] : yAxis }}
3131
</b-td>
3232
<b-td v-for="(value, index) in rendered_chart_to_table['overall']['datasets']"
3333
:key="`${yIndex}${index}h`">
@@ -37,7 +37,7 @@
3737
</b-tbody>
3838
</b-table-simple>
3939

40-
</div>-
40+
</div>
4141
</div>
4242
<div v-else class="not-on-new-page" :key="chart.axis.join('.') + 'b'">
4343
<!-- Do not show canvas chart element in accessibility, use the table below -->
@@ -64,7 +64,7 @@
6464
<b-tr v-for="(yAxis, yIndex) in rendered_chart_to_table[chart.label]['labels']"
6565
:key="yAxis[0] + Math.floor(Math.random() * 100000000)">
6666
<b-td style="width: 20%">
67-
{{ $t(yAxis[0]) }}
67+
{{ Array.isArray(yAxis) ? yAxis[0] : yAxis }}
6868
</b-td>
6969
<b-td v-for="(value, index) in rendered_chart_to_table[chart.label]['datasets']"
7070
:key="`${yIndex}${index}e`">
@@ -123,6 +123,7 @@ export default {
123123
// make web axis-charts for web and mail axis charts for mail.
124124
if (scan_form.name !== this.reports[0].report_type)
125125
return
126+
126127
charts.push({
127128
'average': this.show_average(scan_form.name),
128129
'only_average': false,

0 commit comments

Comments
 (0)