Browse Source

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

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

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

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

Loading…
Cancel
Save