From e84fcdd4714d8a833d7468f79be8e4314208df4b Mon Sep 17 00:00:00 2001 From: mateo-berri <277851410+mateo-berri@users.noreply.github.com> Date: Wed, 20 May 2026 22:47:48 +0000 Subject: [PATCH] fix(ui): guard model_info access in pause Switch with optional chaining --- .../src/components/molecules/models/columns.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/litellm-dashboard/src/components/molecules/models/columns.tsx b/ui/litellm-dashboard/src/components/molecules/models/columns.tsx index edf9f7e0867..0a1a1118cc6 100644 --- a/ui/litellm-dashboard/src/components/molecules/models/columns.tsx +++ b/ui/litellm-dashboard/src/components/molecules/models/columns.tsx @@ -421,7 +421,7 @@ export const columns = ( // clicks. Pair `loading` with `disabled` derived from the same condition // so a double-click during a pending PATCH cannot send a second, // conflicting `blocked` value. - const isPausing = pausingModelId === model.model_info.id; + const isPausing = pausingModelId === model.model_info?.id; return (