fix: subscription prop validation linting

This commit is contained in:
Dominik Pschenitschni 2022-01-19 23:07:02 +01:00
parent 8555ffcd17
commit c896ad5883
No known key found for this signature in database
GPG key ID: B257AC0149F43A77

View file

@ -23,7 +23,7 @@
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import {computed, PropType, shallowRef} from 'vue' import {computed, shallowRef} from 'vue'
import {useI18n} from 'vue-i18n' import {useI18n} from 'vue-i18n'
import SubscriptionService from '@/services/subscription' import SubscriptionService from '@/services/subscription'
@ -38,9 +38,10 @@ const props = defineProps({
}, },
subscription: { subscription: {
required: true, required: true,
type: Object,
validator(value) { validator(value) {
return value instanceof SubscriptionModel || value === null return value instanceof SubscriptionModel || value === null
} },
}, },
entityId: { entityId: {
required: true, required: true,