Commit 89d80b58 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: presets should not be allowed as a base model

parent 83097cd8
...@@ -290,7 +290,7 @@ ...@@ -290,7 +290,7 @@
<option value={null} class=" placeholder:text-gray-500" <option value={null} class=" placeholder:text-gray-500"
>{$i18n.t('Select a base model')}</option >{$i18n.t('Select a base model')}</option
> >
{#each $models as model} {#each $models.filter((m) => !m?.preset) as model}
<option value={model.id}>{model.name}</option> <option value={model.id}>{model.name}</option>
{/each} {/each}
</select> </select>
......
...@@ -282,7 +282,7 @@ ...@@ -282,7 +282,7 @@
<option value={null} class=" placeholder:text-gray-500" <option value={null} class=" placeholder:text-gray-500"
>{$i18n.t('Select a base model')}</option >{$i18n.t('Select a base model')}</option
> >
{#each $models.filter((m) => m.id !== model.id) as model} {#each $models.filter((m) => m.id !== model.id && !m?.preset) as model}
<option value={model.id}>{model.name}</option> <option value={model.id}>{model.name}</option>
{/each} {/each}
</select> </select>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment