From be1802e52c3e7575a3f3fe62e2b1bd5dda2a6180 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Fri, 19 Aug 2022 12:10:09 +0800 Subject: [PATCH] fix(gui-v2): filter for share base --- packages/nc-gui-v2/composables/useViewFilters.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/nc-gui-v2/composables/useViewFilters.ts b/packages/nc-gui-v2/composables/useViewFilters.ts index 8a7f27cb86..2fc0f5de38 100644 --- a/packages/nc-gui-v2/composables/useViewFilters.ts +++ b/packages/nc-gui-v2/composables/useViewFilters.ts @@ -29,6 +29,8 @@ export function useViewFilters( const isPublic = inject(IsPublicInj, ref(false)) + const { isSharedBase } = useProject() + const { $api } = useNuxtApp() const { isUIAllowed } = useUIPermission() @@ -60,7 +62,7 @@ export function useViewFilters( } const loadFilters = async (hookId?: string) => { - if (isPublic.value) return + if (isPublic.value || isSharedBase) return if (hookId) { if (parentId) {