Fix usage of v-for and v-if on same component

This commit is contained in:
Tim Miller-Williams 2020-04-28 15:27:09 +01:00
parent 8263b17861
commit 06d6dbe3a3

View File

@ -106,17 +106,18 @@
@start="onDragStart"
@end="onDragEnd"
>
<Channel
v-for="(channel, index) in network.channels"
v-if="index > 0"
:key="channel.id"
:channel="channel"
:network="network"
:active="
$store.state.activeChannel &&
channel === $store.state.activeChannel.channel
"
/>
<template v-for="(channel, index) in network.channels">
<Channel
v-if="index > 0"
:key="channel.id"
:channel="channel"
:network="network"
:active="
$store.state.activeChannel &&
channel === $store.state.activeChannel.channel
"
/>
</template>
</Draggable>
</div>
</Draggable>