From 237eb3fc03ea8e0d044c62089e24117dc03f93f5 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Wed, 6 Jul 2022 17:36:04 +0800 Subject: [PATCH] fix: default number /= 100 --- .../components/project/spreadsheet/components/EditColumn.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui/components/project/spreadsheet/components/EditColumn.vue b/packages/nc-gui/components/project/spreadsheet/components/EditColumn.vue index 72aa5ee7c9..18c024af78 100644 --- a/packages/nc-gui/components/project/spreadsheet/components/EditColumn.vue +++ b/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) { - this.newColumn.cdf = this.newColumn?.meta?.defaultNumber + this.newColumn.cdf = Number(this.newColumn?.meta?.defaultNumber) / 100 } if (this.isLinkToAnotherRecord && this.$refs.relation) {