From 6810fe5d0a04ec4dae8d9dcb52f5a44fe34e07e9 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Tue, 24 May 2022 12:13:22 +0800 Subject: [PATCH] fix: incorrect data types --- .../spreadsheet/components/editColumn/FormulaOptions.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/nc-gui/components/project/spreadsheet/components/editColumn/FormulaOptions.vue b/packages/nc-gui/components/project/spreadsheet/components/editColumn/FormulaOptions.vue index 6ab52c5bab..c607a8ccbd 100644 --- a/packages/nc-gui/components/project/spreadsheet/components/editColumn/FormulaOptions.vue +++ b/packages/nc-gui/components/project/spreadsheet/components/editColumn/FormulaOptions.vue @@ -490,7 +490,7 @@ export default { case UITypes.PhoneNumber: case UITypes.Email: case UITypes.URL: - return 'string' + return formulaTypes.STRING // numeric case UITypes.Year: @@ -499,14 +499,14 @@ export default { case UITypes.Rating: case UITypes.Count: case UITypes.AutoNumber: - return 'number' + return formulaTypes.NUMERIC // date case UITypes.Date: case UITypes.DateTime: case UITypes.CreateTime: case UITypes.LastModifiedTime: - return 'date' + return formulaTypes.DATE // not supported case UITypes.ForeignKey: @@ -527,7 +527,7 @@ export default { } } } else if (parsedTree.type === jsep.BINARY_EXP || parsedTree.type === jsep.UNARY_EXP) { - return 'number' + return formulaTypes.NUMERIC } else if (parsedTree.type === jsep.LITERAL) { return typeof parsedTree.value } else {