mirror of
https://github.com/open-webui/open-webui
synced 2025-06-04 03:37:35 +00:00
refac: disable empty model id
This commit is contained in:
parent
da6535eeb4
commit
c5ef53a09f
@ -185,6 +185,10 @@
|
|||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
on:click={() => {
|
on:click={() => {
|
||||||
|
if (selectedModelId === '') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (defaultModelIds.includes(selectedModelId)) {
|
if (defaultModelIds.includes(selectedModelId)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -209,7 +213,7 @@
|
|||||||
showResetModal = true;
|
showResetModal = true;
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{$i18n.t('Delete All Models')}
|
{$i18n.t('Reset All Models')}
|
||||||
</button>
|
</button>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user