Fix usage of v-for and v-if on same component
This commit is contained in:
parent
8263b17861
commit
06d6dbe3a3
@ -106,17 +106,18 @@
|
|||||||
@start="onDragStart"
|
@start="onDragStart"
|
||||||
@end="onDragEnd"
|
@end="onDragEnd"
|
||||||
>
|
>
|
||||||
<Channel
|
<template v-for="(channel, index) in network.channels">
|
||||||
v-for="(channel, index) in network.channels"
|
<Channel
|
||||||
v-if="index > 0"
|
v-if="index > 0"
|
||||||
:key="channel.id"
|
:key="channel.id"
|
||||||
:channel="channel"
|
:channel="channel"
|
||||||
:network="network"
|
:network="network"
|
||||||
:active="
|
:active="
|
||||||
$store.state.activeChannel &&
|
$store.state.activeChannel &&
|
||||||
channel === $store.state.activeChannel.channel
|
channel === $store.state.activeChannel.channel
|
||||||
"
|
"
|
||||||
/>
|
/>
|
||||||
|
</template>
|
||||||
</Draggable>
|
</Draggable>
|
||||||
</div>
|
</div>
|
||||||
</Draggable>
|
</Draggable>
|
||||||
|
Loading…
Reference in New Issue
Block a user