diff --git a/packages/nc-gui/components/smartsheet/Form.vue b/packages/nc-gui/components/smartsheet/Form.vue index 2ec33de29c..e71424ec4f 100644 --- a/packages/nc-gui/components/smartsheet/Form.vue +++ b/packages/nc-gui/components/smartsheet/Form.vue @@ -9,7 +9,6 @@ import { ReloadViewDataHookInj, computed, createEventHook, - emailValidator, extractSdkResponseErrorMsg, inject, message, @@ -98,6 +97,8 @@ const submitted = ref(false) const activeRow = ref('') +const editEnabled = ref([]) + const { t } = useI18n() const { betaFeatureToggleState } = useBetaFeatureToggle() @@ -284,6 +285,8 @@ function setFormData() { .sort((a, b) => a.order - b.order) .map((c) => ({ ...c, required: !!c.required })) + editEnabled.value = new Array(localColumns.value.length).fill(false) + systemFieldsIds.value = getSystemColumns(col).map((c) => c.fk_column_id) hiddenColumns.value = col.filter( @@ -382,8 +385,6 @@ watch(view, (nextView) => { reloadEventHook.trigger() } }) - -const editEnabled = ref({})