fix: subscription prop validation

This commit is contained in:
kolaente 2022-01-18 22:26:27 +01:00
parent 6a6203f553
commit ca938b8615
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -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,