Skip to content

Commit

Permalink
chore(cost-analysis): solve usage unit total issue (#5643)
Browse files Browse the repository at this point in the history
Signed-off-by: samuel.park <[email protected]>
  • Loading branch information
piggggggggy authored Feb 13, 2025
1 parent a3f2b8f commit e2a7087
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -640,13 +640,13 @@ watch(
#tf-col-format="{field, colIndex, values}"
>
<span v-if="colIndex === 0">Total</span>
<span v-else-if="tableState.showFormattedData
<span v-else-if="tableState.showFormattedData && field.name !== 'usage_unit'
&& (!state.visibleGroupByItems.map(item => lowerCase(item.name)).includes(lowerCase(field.name))
&& !state.visibleGroupByItems.map(item => lowerCase(item.label)).includes(lowerCase(field.name)))"
>
{{ Array.isArray(values) && values.length > 0 ? numberFormatter(reduce(values), {notation: 'compact'}) : 0 }}
</span>
<span v-else-if="!tableState.showFormattedData
<span v-else-if="!tableState.showFormattedData && field.name !== 'usage_unit'
&& (!state.visibleGroupByItems.map(item => lowerCase(item.name)).includes(lowerCase(field.name))
&& !state.visibleGroupByItems.map(item => lowerCase(item.label)).includes(lowerCase(field.name)))"
>
Expand Down

0 comments on commit e2a7087

Please sign in to comment.