diff --git a/packages/web/components/templates/library/LibraryContainer.tsx b/packages/web/components/templates/library/LibraryContainer.tsx index 2a1d72441..6bb4829bd 100644 --- a/packages/web/components/templates/library/LibraryContainer.tsx +++ b/packages/web/components/templates/library/LibraryContainer.tsx @@ -164,6 +164,9 @@ export function LibraryContainer(props: LibraryContainerProps): JSX.Element { const items = itemsPages?.pages .flatMap((ad: LibraryItems) => { + if (!ad.edges) { + return [] + } return ad.edges.map((it) => ({ ...it, isLoading: it.node.state === 'PROCESSING',