1
0
Fork 0
mirror of https://github.com/pawelmalak/flame.git synced 2025-07-27 14:59:37 +02:00

fix bookmarks

This commit is contained in:
François Darveau 2021-10-11 12:13:04 -04:00
parent 349d63c3e3
commit 5fde088001

View file

@ -62,7 +62,7 @@ const Bookmarks = (props: ComponentProps): JSX.Element => {
}); });
useEffect(() => { useEffect(() => {
if (bookmarks.length === 0) { if (!bookmarks || bookmarks.length === 0) {
getBookmarks(); getBookmarks();
} }
}, [getBookmarks]); }, [getBookmarks]);