From 5010c9108702ce0e2a5f6ad81b2df429ad256891 Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Fri, 20 Oct 2023 12:47:03 -0600 Subject: [PATCH] JobList: Filter jobs with a nullish id Paddles should not give us broken job objects like this, but we should also not crash if it does :) Signed-off-by: Zack Cerza --- src/components/JobList/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/JobList/index.tsx b/src/components/JobList/index.tsx index e4230c7..390d5ff 100644 --- a/src/components/JobList/index.tsx +++ b/src/components/JobList/index.tsx @@ -182,10 +182,11 @@ export default function JobList({ query, params, setter, pagingMode }: JobListPr const onFilterModelChange = (model: GridFilterModel) => { setter({ status: model.items[0].value || null }); }; + const rows = (query.data?.jobs || []).filter(item => item.id); return (