mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Filter library items with no highlights from the highlights mode
This commit is contained in:
parent
b8b4fa888c
commit
5b947aac73
1 changed files with 3 additions and 1 deletions
|
|
@ -84,7 +84,9 @@ export function HighlightItemsLayout(
|
|||
useEffect(() => {
|
||||
dispatchList({
|
||||
type: 'RESET',
|
||||
items: props.items,
|
||||
items: props.items.filter(
|
||||
(item) => item.node.highlights && item.node.highlights.length > 0
|
||||
),
|
||||
})
|
||||
}, [props.items])
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue