Merge pull request #968 from Carlos-err406/fix/double-loop

fix: unnecesary double loop
This commit is contained in:
Timothy Jaeryang Baek 2024-02-29 15:15:19 -05:00 committed by GitHub
commit 19d49df76f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -191,10 +191,12 @@
placeholder="Select a model"
>
<option value="" selected>Current Model</option>
{#each $models.filter((m) => m.size != null) as model}
<option value={model.name} class="bg-gray-100 dark:bg-gray-700"
>{model.name + ' (' + (model.size / 1024 ** 3).toFixed(1) + ' GB)'}</option
>
{#each $models as model}
{#if model.size != null}
<option value={model.name} class="bg-gray-100 dark:bg-gray-700">
{model.name + ' (' + (model.size / 1024 ** 3).toFixed(1) + ' GB)'}
</option>
{/if}
{/each}
</select>
</div>