mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Fix empty edges in useMemo
Still need to track downt the root cause of this.
This commit is contained in:
parent
5f35ee74eb
commit
bdb31137bd
1 changed files with 3 additions and 0 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in a new issue