refac: disable empty model id

This commit is contained in:
Timothy Jaeryang Baek 2024-11-26 21:28:49 -08:00
parent da6535eeb4
commit c5ef53a09f

View File

@ -185,6 +185,10 @@
<button
type="button"
on:click={() => {
if (selectedModelId === '') {
return;
}
if (defaultModelIds.includes(selectedModelId)) {
return;
}
@ -209,7 +213,7 @@
showResetModal = true;
}}
>
{$i18n.t('Delete All Models')}
{$i18n.t('Reset All Models')}
</button>
</Tooltip>