fix: subscription prop validation
This commit is contained in:
parent
6a6203f553
commit
ca938b8615
1 changed files with 3 additions and 1 deletions
|
@ -38,7 +38,9 @@ const props = defineProps({
|
|||
},
|
||||
subscription: {
|
||||
required: true,
|
||||
type: Object as PropType<SubscriptionModel>,
|
||||
validator(value) {
|
||||
return value instanceof SubscriptionModel || value === null
|
||||
}
|
||||
},
|
||||
entityId: {
|
||||
required: true,
|
||||
|
|
Loading…
Reference in a new issue