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: {
|
subscription: {
|
||||||
required: true,
|
required: true,
|
||||||
type: Object as PropType<SubscriptionModel>,
|
validator(value) {
|
||||||
|
return value instanceof SubscriptionModel || value === null
|
||||||
|
}
|
||||||
},
|
},
|
||||||
entityId: {
|
entityId: {
|
||||||
required: true,
|
required: true,
|
||||||
|
|
Loading…
Reference in a new issue