Filter library items with no highlights from the highlights mode

This commit is contained in:
Jackson Harper 2023-03-17 16:22:49 +08:00
parent b8b4fa888c
commit 5b947aac73

View file

@ -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])