Fix type error in children

This commit is contained in:
nemunaire 2020-10-03 22:36:10 +02:00
parent 9629060d21
commit 0945bf2ecb
2 changed files with 3 additions and 3 deletions

View File

@ -32,7 +32,7 @@
-->
<template>
<component :is="displayFormat === 'grid' ? 'b-card' : 'b-list-group'" :class="displayFormat !== 'list' ? 'card-hover' : ''" :style="displayFormat === 'grid' ? 'width: 32%; min-width: 225px; margin-bottom: 1em; cursor: pointer;' : displayFormat === 'records' ? 'margin-bottom: .5em; cursor: pointer;' : ''" no-body>
<component v-if="services[service._svctype]" :is="displayFormat === 'grid' ? 'b-card' : 'b-list-group'" :class="displayFormat !== 'list' ? 'card-hover' : ''" :style="displayFormat === 'grid' ? 'width: 32%; min-width: 225px; margin-bottom: 1em; cursor: pointer;' : displayFormat === 'records' ? 'margin-bottom: .5em; cursor: pointer;' : ''" no-body>
<b-card-body v-if="displayFormat === 'grid'" @click="$emit('showServiceWindow', service)">
<b-badge v-for="(categorie, idcat) in services[service._svctype].categories" :key="idcat" variant="gray" class="float-right ml-1">
{{ categorie }}

View File

@ -170,7 +170,7 @@ export default {
hideDomain: {},
modal: null,
myServices: null,
services: null,
services: {},
updateServiceInProgress: false
}
},
@ -307,7 +307,7 @@ export default {
},
isLoading () {
return this.myServices == null && this.zoneId === undefined && this.services == null
return this.myServices == null && this.zoneId === undefined && this.services === {}
},
sortedDomains () {