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

This commit is contained in:
Ramesh Mane
2024-03-13 21:16:14 +00:00
parent 5695241e59
commit d89eee8bb7

View File

@@ -2,15 +2,20 @@
import type { BaseType } from 'nocodb-sdk'
import { ProjectInj, ProjectRoleInj } from '#imports'
const props = defineProps<{
baseRole: string | string[]
base: BaseType
}>()
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>