Skip to content

Commit

Permalink
fixed(south tag): When the decimal value is 0, does not display its v…
Browse files Browse the repository at this point in the history
…alue on the UI
  • Loading branch information
zuxia.ge committed Jun 1, 2023
1 parent aa2449b commit 9e54b0e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/composables/config/useTagList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,15 @@ export default () => {
}

const editTag = (tag: TagDataInTable) => {
currentTag.value = OmitArrayFields([tag], ['checked'])[0]
const { checked, decimal, ...restData } = tag
const tagData: TagData = { ...restData }

// When the decimal value is 0, does not display its value on the UI
if (!decimal) {
tagData.decimal = undefined
}

currentTag.value = tagData
showEditDialog.value = true
}

Expand Down

0 comments on commit 9e54b0e

Please sign in to comment.