Skip to content

Commit 1ce8c04

Browse files
committed
✨ Model access supports modification access - bugs fix
1 parent b44367a commit 1ce8c04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/app/[locale]/setup/modelSetup/model/ModelDeleteDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ export const ModelDeleteDialog = ({
351351
pendingSelectedProviderIds.has(pm.id)
352352
)
353353

354-
if (allEnabledModels.length >= 0) {
354+
if (allEnabledModels) {
355355
const apiKey = getApiKeyByType(deletingModelType)
356356
// Pass all currently enabled models
357357
await modelService.addBatchCustomModel({

0 commit comments

Comments
 (0)