fix bug when emmission is undefined

This commit is contained in:
vincent 2019-04-26 14:43:59 +02:00
parent a07d0dffb9
commit c14b1bd7bf

View File

@ -15,7 +15,7 @@
<ul v-if="arrayresultchaines">
<li v-for="result in arrayresultchaines" v-bind:key="result.chaine" >
<h3>{{result.chaine}} : {{result.name}}</h3>
<ul v-if="result.emission!='can\'t find channel'">
<ul v-if="(result.emission!='can\'t find channel' && result.emission)">
<li><h4><a target="_blank" :href="result.emission.href">{{result.emission.title}}</a></h4></li>
<li><img :src="result.emission.img"></li>
<li><p>{{result.emission.synopsis}}</p></li>