Browse Source

fix: default number /= 100

test/percent
Wing-Kam Wong 2 years ago
parent
commit
237eb3fc03
  1. 2
      packages/nc-gui/components/project/spreadsheet/components/EditColumn.vue

2
packages/nc-gui/components/project/spreadsheet/components/EditColumn.vue

@ -768,7 +768,7 @@ export default {
} }
if (this.newColumn.uidt === UITypes.Percent && this.newColumn?.meta?.defaultNumber) { if (this.newColumn.uidt === UITypes.Percent && this.newColumn?.meta?.defaultNumber) {
this.newColumn.cdf = this.newColumn?.meta?.defaultNumber this.newColumn.cdf = Number(this.newColumn?.meta?.defaultNumber) / 100
} }
if (this.isLinkToAnotherRecord && this.$refs.relation) { if (this.isLinkToAnotherRecord && this.$refs.relation) {

Loading…
Cancel
Save