Browse Source

chore(nc-gui): lint

pull/6937/head
աɨռɢӄաօռɢ 1 year ago
parent
commit
88c8d06673
  1. 1
      packages/nc-gui/components/smartsheet/Row.vue
  2. 2
      packages/nc-gui/components/smartsheet/details/Fields.vue
  3. 1
      packages/nc-gui/components/smartsheet/expanded-form/index.vue
  4. 2
      packages/nc-gui/composables/useData.ts
  5. 5
      packages/nc-gui/composables/useExpandedFormStore.ts

1
packages/nc-gui/components/smartsheet/Row.vue

@ -11,7 +11,6 @@ import {
toRef, toRef,
useProvideSmartsheetRowStore, useProvideSmartsheetRowStore,
useSmartsheetStoreOrThrow, useSmartsheetStoreOrThrow,
watch,
} from '#imports' } from '#imports'
const props = defineProps<{ const props = defineProps<{

2
packages/nc-gui/components/smartsheet/details/Fields.vue

@ -60,8 +60,6 @@ const newFields = ref<TableExplorerColumn[]>([])
const isFieldIdCopied = ref(false) const isFieldIdCopied = ref(false)
const isColOptionDropdownOpen = ref(false)
const compareCols = (a?: TableExplorerColumn, b?: TableExplorerColumn) => { const compareCols = (a?: TableExplorerColumn, b?: TableExplorerColumn) => {
if (a?.id && b?.id) { if (a?.id && b?.id) {
return a.id === b.id return a.id === b.id

1
packages/nc-gui/components/smartsheet/expanded-form/index.vue

@ -129,7 +129,6 @@ const {
primaryKey, primaryKey,
saveRowAndStay, saveRowAndStay,
row: _row, row: _row,
syncLTARRefs,
save: _save, save: _save,
loadCommentsAndLogs, loadCommentsAndLogs,
clearColumns, clearColumns,

2
packages/nc-gui/composables/useData.ts

@ -91,7 +91,7 @@ export function useData(args: {
base?.value.id as string, base?.value.id as string,
metaValue?.id as string, metaValue?.id as string,
viewMetaValue?.id as string, viewMetaValue?.id as string,
{ ...insertObj, ...(ltarState ||{}) }, { ...insertObj, ...(ltarState || {}) },
) )
if (!undo) { if (!undo) {

5
packages/nc-gui/composables/useExpandedFormStore.ts

@ -180,7 +180,10 @@ const [useProvideExpandedFormStore, useExpandedFormStore] = useInjectionState((m
if (missingRequiredColumns.size) return 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, { Object.assign(row.value, {
row: data, row: data,

Loading…
Cancel
Save