Use up-to-date manga data for selection fab actions (#526)

The selected manga data was only updated in case the selection changed, thus, after executing an action, the used data was outdated
This commit is contained in:
schroda
2023-12-30 04:04:47 +01:00
committed by GitHub
parent 356303ab5a
commit d15be603b1

View File

@@ -117,7 +117,7 @@ export function Library() {
fragmentName: 'PARTIAL_MANGA_FIELDS', fragmentName: 'PARTIAL_MANGA_FIELDS',
})!, })!,
), ),
[selectedItemIds.length], [selectedItemIds.length, mangas],
); );
const { setTitle, setAction } = useContext(NavBarContext); const { setTitle, setAction } = useContext(NavBarContext);