From 88bc7762e2ddf828e4e5dff9b79c896f76d2b7e3 Mon Sep 17 00:00:00 2001 From: jeffvli Date: Sat, 7 Aug 2021 04:46:36 -0700 Subject: [PATCH] fix double click --- src/components/player/NowPlayingView.tsx | 2 +- src/components/viewtypes/ListViewType.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/player/NowPlayingView.tsx b/src/components/player/NowPlayingView.tsx index f4201dc..eb7e599 100644 --- a/src/components/player/NowPlayingView.tsx +++ b/src/components/player/NowPlayingView.tsx @@ -91,7 +91,7 @@ const NowPlayingView = () => { } }; - const handleRowDoubleClick = (_e: any, rowData: any) => { + const handleRowDoubleClick = (rowData: any) => { window.clearTimeout(timeout); timeout = null; dispatch(clearSelected()); diff --git a/src/components/viewtypes/ListViewType.tsx b/src/components/viewtypes/ListViewType.tsx index 216eb6c..740e395 100644 --- a/src/components/viewtypes/ListViewType.tsx +++ b/src/components/viewtypes/ListViewType.tsx @@ -198,7 +198,7 @@ const ListViewType = ({ }) } onDoubleClick={(e: any) => - handleRowDoubleClick(e, { + handleRowDoubleClick({ ...rowData, rowIndex, })