fix: subscription prop validation linting
This commit is contained in:
parent
8555ffcd17
commit
c896ad5883
1 changed files with 3 additions and 2 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue