diff --git a/packages/nc-gui/components/smartsheet/column/FormulaOptions.vue b/packages/nc-gui/components/smartsheet/column/FormulaOptions.vue
index ce0f47bca8..1f5a1dc69d 100644
--- a/packages/nc-gui/components/smartsheet/column/FormulaOptions.vue
+++ b/packages/nc-gui/components/smartsheet/column/FormulaOptions.vue
@@ -118,6 +118,10 @@ const debouncedValidate = useDebounceFn(async () => {
dataType: FormulaDataTypes.UNKNOWN,
}
}
+ } finally {
+ if (vModel.value?.colOptions?.parsed_tree?.dataType !== parsedTree.value?.dataType) {
+ vModel.value.meta.display_type = null
+ }
}
}, 300)
@@ -175,15 +179,6 @@ watch(
immediate: true,
},
)
-
-watch(parsedTree, (value, oldValue) => {
- if (oldValue === undefined && value) {
- return
- }
- if (value?.dataType !== oldValue?.dataType) {
- vModel.value.meta.display_type = null
- }
-})
@@ -209,9 +204,14 @@ watch(parsedTree, (value, oldValue) => {