Fix empty edges in useMemo
Still need to track downt the root cause of this.
This commit is contained in:
@ -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',
|
||||
|
||||
Reference in New Issue
Block a user