mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-01 11:56:48 +00:00
fix(nc-gui): Invalid prop: type check failed for prop "baseRole".
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user