From 89b3ccfa20b346a3f5a314404abd30e0d4e3b2ba Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Tue, 2 Jan 2024 08:15:25 +0000 Subject: [PATCH] fix: lint error --- .../components/project/AccessSettings.vue | 19 ------------------- .../components/virtual-cell/Formula.vue | 3 --- 2 files changed, 22 deletions(-) diff --git a/packages/nc-gui/components/project/AccessSettings.vue b/packages/nc-gui/components/project/AccessSettings.vue index 0c2eae5fe9..006c4e80f3 100644 --- a/packages/nc-gui/components/project/AccessSettings.vue +++ b/packages/nc-gui/components/project/AccessSettings.vue @@ -9,7 +9,6 @@ import { timeAgo, } from 'nocodb-sdk' import type { Roles, WorkspaceUserRoles } from 'nocodb-sdk' -import InfiniteLoading from 'v3-infinite-loading' import { isEeUI, storeToRefs, useUserSorts } from '#imports' 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 currentCollaborator = collaborators.value.find((coll) => coll.id === collab.id)! diff --git a/packages/nc-gui/components/virtual-cell/Formula.vue b/packages/nc-gui/components/virtual-cell/Formula.vue index a55e864d66..a23da04391 100644 --- a/packages/nc-gui/components/virtual-cell/Formula.vue +++ b/packages/nc-gui/components/virtual-cell/Formula.vue @@ -11,7 +11,6 @@ import { renderValue, replaceUrlsWithLink, useBase, - useGlobal, } from '#imports' // 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 { showNull } = useGlobal() - const result = computed(() => isPg(column.value.source_id) ? renderValue(handleTZ(cellValue?.value)) : renderValue(cellValue?.value), )