diff --git a/lib/src/Components/Profile/Subcomponents/RelationsView.tsx b/lib/src/Components/Profile/Subcomponents/RelationsView.tsx index 7602ca9f..2348b646 100644 --- a/lib/src/Components/Profile/Subcomponents/RelationsView.tsx +++ b/lib/src/Components/Profile/Subcomponents/RelationsView.tsx @@ -10,7 +10,7 @@ interface Props { export const RelationsView = ({ item, relation }: Props) => { const items = useItems() - if (!item.relations) throw new Error('Item does not have relations defined.') + if (!item.relations) return const relationsOfRightType = item.relations.filter((r) => r.type === relation)