diff --git a/src/frontend/components/actions/list.tsx b/src/frontend/components/actions/list.tsx index 2ec4d4c82..274239396 100644 --- a/src/frontend/components/actions/list.tsx +++ b/src/frontend/components/actions/list.tsx @@ -48,7 +48,7 @@ const List: React.FC = ({ resource, setTag }) => { } else { const recordIds = search.get('recordIds')?.split?.(',') ?? [] setSelectedRecords( - records.filter((r) => recordIds.includes(r.id.toString())), + records.filter((r) => r.id != null && recordIds.includes(String(r.id))), ) } }, [location.search, records])