diff --git a/packages/nc-gui/components/smartsheet/Row.vue b/packages/nc-gui/components/smartsheet/Row.vue index 57e31f4bd4..ae631042bc 100644 --- a/packages/nc-gui/components/smartsheet/Row.vue +++ b/packages/nc-gui/components/smartsheet/Row.vue @@ -11,7 +11,6 @@ import { toRef, useProvideSmartsheetRowStore, useSmartsheetStoreOrThrow, - watch, } from '#imports' const props = defineProps<{ diff --git a/packages/nc-gui/components/smartsheet/details/Fields.vue b/packages/nc-gui/components/smartsheet/details/Fields.vue index 677c015c29..9da14b5ddb 100644 --- a/packages/nc-gui/components/smartsheet/details/Fields.vue +++ b/packages/nc-gui/components/smartsheet/details/Fields.vue @@ -60,8 +60,6 @@ const newFields = ref([]) const isFieldIdCopied = ref(false) -const isColOptionDropdownOpen = ref(false) - const compareCols = (a?: TableExplorerColumn, b?: TableExplorerColumn) => { if (a?.id && b?.id) { return a.id === b.id diff --git a/packages/nc-gui/components/smartsheet/expanded-form/index.vue b/packages/nc-gui/components/smartsheet/expanded-form/index.vue index c346d771ad..e7d4b84c58 100644 --- a/packages/nc-gui/components/smartsheet/expanded-form/index.vue +++ b/packages/nc-gui/components/smartsheet/expanded-form/index.vue @@ -129,7 +129,6 @@ const { primaryKey, saveRowAndStay, row: _row, - syncLTARRefs, save: _save, loadCommentsAndLogs, clearColumns, diff --git a/packages/nc-gui/composables/useData.ts b/packages/nc-gui/composables/useData.ts index 24bbe57373..aa80b9d185 100644 --- a/packages/nc-gui/composables/useData.ts +++ b/packages/nc-gui/composables/useData.ts @@ -91,7 +91,7 @@ export function useData(args: { base?.value.id as string, metaValue?.id as string, viewMetaValue?.id as string, - { ...insertObj, ...(ltarState ||{}) }, + { ...insertObj, ...(ltarState || {}) }, ) if (!undo) { diff --git a/packages/nc-gui/composables/useExpandedFormStore.ts b/packages/nc-gui/composables/useExpandedFormStore.ts index 6910cf3d14..fc42da3bf5 100644 --- a/packages/nc-gui/composables/useExpandedFormStore.ts +++ b/packages/nc-gui/composables/useExpandedFormStore.ts @@ -180,7 +180,10 @@ const [useProvideExpandedFormStore, useExpandedFormStore] = useInjectionState((m if (missingRequiredColumns.size) return - data = await $api.dbTableRow.create('noco', base.value.id as string, meta.value.id, { ...insertObj, ...(ltarState ||{}) }) + data = await $api.dbTableRow.create('noco', base.value.id as string, meta.value.id, { + ...insertObj, + ...(ltarState || {}), + }) Object.assign(row.value, { row: data,