Browse Source

fix(nc-gui): Invalid prop: type check failed for prop "baseRole".

pull/7855/head
Ramesh Mane 7 months ago
parent
commit
d89eee8bb7
  1. 11
      packages/nc-gui/components/dashboard/TreeView/ProjectWrapper.vue

11
packages/nc-gui/components/dashboard/TreeView/ProjectWrapper.vue

@ -2,15 +2,20 @@
import type { BaseType } from 'nocodb-sdk'
import { ProjectInj, ProjectRoleInj } from '#imports'
const props = defineProps<{
const props = withDefaults(
defineProps<{
baseRole: string | string[]
base: BaseType
}>()
}>(),
{
baseRole: '',
},
)
const baseRole = toRef(props, 'baseRole')
const base = toRef(props, 'base')
provide(ProjectRoleInj, baseRole)
provide(ProjectRoleInj, baseRole ?? '')
provide(ProjectInj, base)
</script>

Loading…
Cancel
Save