Browse Source

fix(gui-v2): filter for share base

pull/3234/head
Wing-Kam Wong 2 years ago
parent
commit
be1802e52c
  1. 4
      packages/nc-gui-v2/composables/useViewFilters.ts

4
packages/nc-gui-v2/composables/useViewFilters.ts

@ -29,6 +29,8 @@ export function useViewFilters(
const isPublic = inject(IsPublicInj, ref(false)) const isPublic = inject(IsPublicInj, ref(false))
const { isSharedBase } = useProject()
const { $api } = useNuxtApp() const { $api } = useNuxtApp()
const { isUIAllowed } = useUIPermission() const { isUIAllowed } = useUIPermission()
@ -60,7 +62,7 @@ export function useViewFilters(
} }
const loadFilters = async (hookId?: string) => { const loadFilters = async (hookId?: string) => {
if (isPublic.value) return if (isPublic.value || isSharedBase) return
if (hookId) { if (hookId) {
if (parentId) { if (parentId) {

Loading…
Cancel
Save