Skip to content

Commit e2a7087

Browse files
authored
chore(cost-analysis): solve usage unit total issue (#5643)
Signed-off-by: samuel.park <[email protected]>
1 parent a3f2b8f commit e2a7087

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apps/web/src/services/cost-explorer/components/CostAnalysisDataTable.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -640,13 +640,13 @@ watch(
640640
#tf-col-format="{field, colIndex, values}"
641641
>
642642
<span v-if="colIndex === 0">Total</span>
643-
<span v-else-if="tableState.showFormattedData
643+
<span v-else-if="tableState.showFormattedData && field.name !== 'usage_unit'
644644
&& (!state.visibleGroupByItems.map(item => lowerCase(item.name)).includes(lowerCase(field.name))
645645
&& !state.visibleGroupByItems.map(item => lowerCase(item.label)).includes(lowerCase(field.name)))"
646646
>
647647
{{ Array.isArray(values) && values.length > 0 ? numberFormatter(reduce(values), {notation: 'compact'}) : 0 }}
648648
</span>
649-
<span v-else-if="!tableState.showFormattedData
649+
<span v-else-if="!tableState.showFormattedData && field.name !== 'usage_unit'
650650
&& (!state.visibleGroupByItems.map(item => lowerCase(item.name)).includes(lowerCase(field.name))
651651
&& !state.visibleGroupByItems.map(item => lowerCase(item.label)).includes(lowerCase(field.name)))"
652652
>

0 commit comments

Comments
 (0)