Skip to content

Commit 32b4983

Browse files
committed
🐛 Fix the issue where the frontend still throws an exception after successfully batch modifying the model configuration #1439
1 parent 886073a commit 32b4983

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

frontend/app/[locale]/setup/models/components/model/ModelDeleteDialog.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -453,15 +453,12 @@ export const ModelDeleteDialog = ({
453453
maxTokens: maxTokens || m.maxTokens,
454454
}));
455455

456-
const result = await modelService.updateBatchModel(
456+
await modelService.updateBatchModel(
457457
currentModelPayloads
458458
);
459459

460-
if (result.code !== 200) {
461-
message.error(t("model.dialog.error.noModelsFetched"));
462-
} else {
463-
message.success(t("model.dialog.success.updateSuccess"));
464-
}
460+
// Show success message since no exception was thrown
461+
message.success(t("model.dialog.success.updateSuccess"));
465462

466463
// Optionally use currentModelPayloads for subsequent API calls if needed
467464
} catch (e) {

0 commit comments

Comments
 (0)