Fix empty edges in useMemo

Still need to track downt the root cause of this.
This commit is contained in:
Jackson Harper
2024-08-20 18:00:38 +08:00
parent 5f35ee74eb
commit bdb31137bd

View File

@ -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',