fix(ui): guard model_info access in pause Switch with optional chaining

This commit is contained in:
mateo-berri 2026-05-20 22:47:48 +00:00
parent 2847b4fa11
commit e84fcdd471
No known key found for this signature in database

View file

@ -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 (
<div className="flex items-center justify-end gap-2 pr-4">
<Tooltip title={pauseTooltip}>