From 30c94ff10f2a6f7fb6c649ea675d8b9c1dbcfd5a Mon Sep 17 00:00:00 2001 From: Carlos Daniel Vilaseca Date: Thu, 29 Feb 2024 12:37:46 -0500 Subject: [PATCH] fix: unnecesary double loop --- src/lib/components/chat/Settings/Interface.svelte | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/lib/components/chat/Settings/Interface.svelte b/src/lib/components/chat/Settings/Interface.svelte index f2dfac5c..436f6777 100644 --- a/src/lib/components/chat/Settings/Interface.svelte +++ b/src/lib/components/chat/Settings/Interface.svelte @@ -191,10 +191,12 @@ placeholder="Select a model" > - {#each $models.filter((m) => m.size != null) as model} - + {#each $models as model} + {#if model.size != null} + + {/if} {/each}