mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Allow mutate to re-render, fixes issues with filter funcs
This commit is contained in:
parent
e12d892f2b
commit
c529e52936
2 changed files with 4 additions and 7 deletions
|
|
@ -319,7 +319,7 @@ export function useGetLibraryItemsQuery(
|
|||
break
|
||||
}
|
||||
}
|
||||
mutate(responsePages, false)
|
||||
mutate(responsePages)
|
||||
}
|
||||
|
||||
switch (action) {
|
||||
|
|
|
|||
|
|
@ -78,11 +78,6 @@ export default function Home(): JSX.Element {
|
|||
<LibraryContainer
|
||||
folder="archive"
|
||||
filterFunc={(item) => {
|
||||
console.log(
|
||||
'running archive filter: ',
|
||||
item.title,
|
||||
item.isArchived
|
||||
)
|
||||
return item.state != 'DELETED' && item.isArchived
|
||||
}}
|
||||
showNavigationMenu={showNavigationMenu}
|
||||
|
|
@ -92,7 +87,9 @@ export default function Home(): JSX.Element {
|
|||
return (
|
||||
<LibraryContainer
|
||||
folder="trash"
|
||||
filterFunc={(item) => item.state == 'DELETED'}
|
||||
filterFunc={(item) => {
|
||||
return item.state == 'DELETED'
|
||||
}}
|
||||
showNavigationMenu={showNavigationMenu}
|
||||
/>
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue