Closed danielweck closed 2 months ago
I can't reproduce this bug. On my end it works fine either with the mouse or with the keyboard
To reproduce, make sure there is only a single bookmark in the list. No need to enter edit mode (actually), simply press the delete icon
It seems the problem comes from " dispatch(readerActions.bookmark.pop.build(bookmark));" (ReaderMenu.tsx, line 678). If you comment it there is no error but I don't know the cause of it.. @panaC can you have a look ? But when I click the delete bookmark icon in the reader header to delete a bookmark (when there is only one in the list) it works fine even if it the the same "dispatch" that's being called..
if (!r2Publication || !annotationsQueue)
...this should be
if (!r2Publication || !annotationsQueue?.length)
just need to hoist conditional early render() exit AFTER all hooks called?