forked from open-webui/open-webui
Merge pull request #968 from Carlos-err406/fix/double-loop
fix: unnecesary double loop
This commit is contained in:
commit
19d49df76f
1 changed files with 6 additions and 4 deletions
|
@ -191,10 +191,12 @@
|
||||||
placeholder="Select a model"
|
placeholder="Select a model"
|
||||||
>
|
>
|
||||||
<option value="" selected>Current Model</option>
|
<option value="" selected>Current Model</option>
|
||||||
{#each $models.filter((m) => m.size != null) as model}
|
{#each $models as model}
|
||||||
<option value={model.name} class="bg-gray-100 dark:bg-gray-700"
|
{#if model.size != null}
|
||||||
>{model.name + ' (' + (model.size / 1024 ** 3).toFixed(1) + ' GB)'}</option
|
<option value={model.name} class="bg-gray-100 dark:bg-gray-700">
|
||||||
>
|
{model.name + ' (' + (model.size / 1024 ** 3).toFixed(1) + ' GB)'}
|
||||||
|
</option>
|
||||||
|
{/if}
|
||||||
{/each}
|
{/each}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue