diff --git a/ui/litellm-dashboard/src/components/model_dashboard/columns.tsx b/ui/litellm-dashboard/src/components/model_dashboard/columns.tsx
index 53f1aaa696..b1acf9ea5d 100644
--- a/ui/litellm-dashboard/src/components/model_dashboard/columns.tsx
+++ b/ui/litellm-dashboard/src/components/model_dashboard/columns.tsx
@@ -193,14 +193,14 @@ export const columns = (
accessorKey: "litellm_credential_name",
cell: ({ row }) => {
const model = row.original;
- return model.litellm_params.litellm_credential_name ? (
+ return model.litellm_params && model.litellm_params.litellm_credential_name ? (
{model.litellm_params.litellm_credential_name.slice(0, 7)}...
) : (
- "-"
+ -
);
},
},
diff --git a/ui/litellm-dashboard/src/components/model_info_view.tsx b/ui/litellm-dashboard/src/components/model_info_view.tsx
index 261b544d92..c0fb57ed13 100644
--- a/ui/litellm-dashboard/src/components/model_info_view.tsx
+++ b/ui/litellm-dashboard/src/components/model_info_view.tsx
@@ -128,6 +128,14 @@ export default function ModelInfoView({
if (!accessToken) return;
await modelDeleteCall(accessToken, modelId);
message.success("Model deleted successfully");
+
+ if (onModelUpdate) {
+ onModelUpdate({
+ deleted: true,
+ model_info: { id: modelId }
+ });
+ }
+
onClose();
} catch (error) {
console.error("Error deleting the model:", error);