Browse Source

fix: lint errors

pull/7376/head
Ramesh Mane 11 months ago
parent
commit
7a569443a1
  1. 2
      packages/nc-gui/components/smartsheet/VirtualCell.vue
  2. 2
      packages/nc-gui/components/smartsheet/grid/GroupByLabel.vue
  3. 3
      packages/nc-gui/components/virtual-cell/components/ListChildItems.vue
  4. 2
      packages/nc-gui/components/virtual-cell/components/ListItems.vue
  5. 10
      packages/nc-gui/composables/useLTARStore.ts

2
packages/nc-gui/components/smartsheet/VirtualCell.vue

@ -20,11 +20,11 @@ import {
isLink,
isLookup,
isMm,
isPrimary,
isQrCode,
isRollup,
provide,
toRef,
isPrimary,
} from '#imports'
import type { Row } from '#imports'

2
packages/nc-gui/components/smartsheet/grid/GroupByLabel.vue

@ -1,7 +1,7 @@
<script setup lang="ts">
import type { ColumnType } from 'nocodb-sdk'
import { isVirtualCol } from 'nocodb-sdk'
import { ReadonlyInj, IsGroupByLabelInj } from '#imports'
import { IsGroupByLabelInj, ReadonlyInj } from '#imports'
defineProps<{
column: ColumnType

3
packages/nc-gui/components/virtual-cell/components/ListChildItems.vue

@ -55,10 +55,9 @@ const {
isChildrenListLinked,
isChildrenLoading,
relatedTableMeta,
row,
link,
meta,
headerDisplayValue
headerDisplayValue,
} = useLTARStoreOrThrow()
const { isNew, state, removeLTARRef, addLTARRef } = useSmartsheetRowStoreOrThrow()

2
packages/nc-gui/components/virtual-cell/components/ListItems.vue

@ -49,7 +49,7 @@ const {
meta,
unlink,
row,
headerDisplayValue
headerDisplayValue,
} = useLTARStoreOrThrow()
const { addLTARRef, isNew, removeLTARRef, state: rowState } = useSmartsheetRowStoreOrThrow()

10
packages/nc-gui/composables/useLTARStore.ts

@ -1,13 +1,13 @@
import {
UITypes,
type ColumnType,
type LinkToAnotherRecordType,
type PaginatedType,
type RequestParams,
type TableType,
UITypes,
dateFormats,
timeFormats,
parseStringDateTime,
timeFormats,
} from 'nocodb-sdk'
import type { ComputedRef, Ref } from 'vue'
import {
@ -19,6 +19,7 @@ import {
extractSdkResponseErrorMsg,
inject,
message,
parseProp,
reactive,
ref,
storeToRefs,
@ -30,7 +31,6 @@ import {
useRouter,
useSharedView,
watch,
parseProp,
} from '#imports'
import type { Row } from '#imports'
@ -145,7 +145,7 @@ const [useProvideLTARStore, useLTARStore] = useInjectionState(
type: '',
format: '',
}
let currentColumn = relatedTableMeta.value?.columns?.find((c) => c.pv) || relatedTableMeta?.value?.columns?.[0]
const currentColumn = relatedTableMeta.value?.columns?.find((c) => c.pv) || relatedTableMeta?.value?.columns?.[0]
if (currentColumn) {
if (currentColumn?.uidt === UITypes.DateTime) {
@ -545,7 +545,7 @@ const [useProvideLTARStore, useLTARStore] = useInjectionState(
isChildrenExcludedLoading,
deleteRelatedRow,
getRelatedTableRowId,
headerDisplayValue
headerDisplayValue,
}
},
'ltar-store',

Loading…
Cancel
Save