From 913e89b01b2974b77c4bde6e8368dadadcb5457f Mon Sep 17 00:00:00 2001 From: jeffvli Date: Thu, 19 Oct 2023 04:33:09 -0700 Subject: [PATCH] Set column defs on play queue to use correct row index --- src/renderer/features/now-playing/components/play-queue.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/renderer/features/now-playing/components/play-queue.tsx b/src/renderer/features/now-playing/components/play-queue.tsx index 0b12453c0..31189ea4d 100644 --- a/src/renderer/features/now-playing/components/play-queue.tsx +++ b/src/renderer/features/now-playing/components/play-queue.tsx @@ -73,7 +73,10 @@ export const PlayQueue = forwardRef(({ type }: QueueProps, ref: Ref) => { }, })); - const columnDefs = useMemo(() => getColumnDefs(tableConfig.columns), [tableConfig.columns]); + const columnDefs = useMemo( + () => getColumnDefs(tableConfig.columns, false, 'generic'), + [tableConfig.columns], + ); const handleDoubleClick = (e: CellDoubleClickedEvent) => { const playerData = setCurrentTrack(e.data.uniqueId);