Fix undefined input.streams error

This commit is contained in:
nemunaire 2024-12-16 18:55:29 +01:00
parent 2b50886ed0
commit 24342f5062
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@
</li>
{/if}
{#each $inputsList as input, iid}
{#if showInactives || input.active}
{#if input.streams && (showInactives || input.active)}
{#each Object.keys(input.streams) as idstream}
{@const title = input.streams[idstream]}
<li class="list-group-item py-3 d-flex flex-column">

View File

@ -48,7 +48,7 @@
<div class="d-inline-block me-3">
<div class="d-flex justify-content-between align-items-center">
<div>
{#if input.streams.length}
{#if input.streams && input.streams.length}
{#each Object.keys(input.streams) as idstream}
{@const title = input.streams[idstream]}
<strong>{title}</strong>