Browse Source

fix: lint error

pull/7342/head
Ramesh Mane 10 months ago
parent
commit
89b3ccfa20
  1. 19
      packages/nc-gui/components/project/AccessSettings.vue
  2. 3
      packages/nc-gui/components/virtual-cell/Formula.vue

19
packages/nc-gui/components/project/AccessSettings.vue

@ -9,7 +9,6 @@ import {
timeAgo, timeAgo,
} from 'nocodb-sdk' } from 'nocodb-sdk'
import type { Roles, WorkspaceUserRoles } from 'nocodb-sdk' import type { Roles, WorkspaceUserRoles } from 'nocodb-sdk'
import InfiniteLoading from 'v3-infinite-loading'
import { isEeUI, storeToRefs, useUserSorts } from '#imports' import { isEeUI, storeToRefs, useUserSorts } from '#imports'
const basesStore = useBases() const basesStore = useBases()
@ -75,24 +74,6 @@ const loadCollaborators = async () => {
} }
} }
const loadListData = async ($state: any) => {
const prevUsersCount = collaborators.value?.length || 0
if (collaborators.value?.length === totalCollaborators.value) {
$state.complete()
return
}
$state.loading()
// const oldPagesCount = currentPage.value || 0
await loadCollaborators()
if (prevUsersCount === collaborators.value?.length) {
$state.complete()
return
}
$state.loaded()
}
const updateCollaborator = async (collab: any, roles: ProjectRoles) => { const updateCollaborator = async (collab: any, roles: ProjectRoles) => {
const currentCollaborator = collaborators.value.find((coll) => coll.id === collab.id)! const currentCollaborator = collaborators.value.find((coll) => coll.id === collab.id)!

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

@ -11,7 +11,6 @@ import {
renderValue, renderValue,
replaceUrlsWithLink, replaceUrlsWithLink,
useBase, useBase,
useGlobal,
} from '#imports' } from '#imports'
// todo: column type doesn't have required property `error` - throws in typecheck // todo: column type doesn't have required property `error` - throws in typecheck
@ -23,8 +22,6 @@ const isExpandedFormOpen = inject(IsExpandedFormOpenInj, ref(false))!
const { isPg } = useBase() const { isPg } = useBase()
const { showNull } = useGlobal()
const result = computed(() => const result = computed(() =>
isPg(column.value.source_id) ? renderValue(handleTZ(cellValue?.value)) : renderValue(cellValue?.value), isPg(column.value.source_id) ? renderValue(handleTZ(cellValue?.value)) : renderValue(cellValue?.value),
) )

Loading…
Cancel
Save