mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-27 12:51:03 +00:00
fix: deleting game from context menu doesnt work in library
This commit is contained in:
@@ -71,7 +71,7 @@ export default function Library() {
|
|||||||
);
|
);
|
||||||
|
|
||||||
const handleCloseContextMenu = useCallback(() => {
|
const handleCloseContextMenu = useCallback(() => {
|
||||||
setContextMenu({ game: null, visible: false, position: { x: 0, y: 0 } });
|
setContextMenu((prev) => ({ ...prev, visible: false }));
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const filteredLibrary = useMemo(() => {
|
const filteredLibrary = useMemo(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user