From 9122018c27c16ab9f3e1a913b83dc8b80efdd115 Mon Sep 17 00:00:00 2001 From: Christian Benincasa Date: Sat, 4 Jan 2025 07:27:28 -0500 Subject: [PATCH] fix: fix show sorting in cyclic shuffle --- web/src/components/InlineModal.tsx | 1 - web/src/hooks/programming_controls/useCyclicShuffle.ts | 9 +++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/web/src/components/InlineModal.tsx b/web/src/components/InlineModal.tsx index cebaf5126..e84c5852b 100644 --- a/web/src/components/InlineModal.tsx +++ b/web/src/components/InlineModal.tsx @@ -38,7 +38,6 @@ export function InlineModal( extractItemId, renderChildren, } = props; - console.log(props); const previousItemGuid = usePrevious(itemGuid); const [containerWidth, setContainerWidth] = useState(0); const [itemWidth, setItemWidth] = useState(0); diff --git a/web/src/hooks/programming_controls/useCyclicShuffle.ts b/web/src/hooks/programming_controls/useCyclicShuffle.ts index 56974b7b0..3a2179e34 100644 --- a/web/src/hooks/programming_controls/useCyclicShuffle.ts +++ b/web/src/hooks/programming_controls/useCyclicShuffle.ts @@ -46,10 +46,11 @@ export function useCyclicShuffle() { .mapValues((programs) => { const firstProgram = programs[0]; if (firstProgram.type === 'content') { - programs = sortBy(programs as UIContentProgram[], (program) => [ - program.parentIndex, - program.index, - ]); + programs = sortBy( + programs as UIContentProgram[], + (p) => p.parentIndex, + (p) => p.index, + ); } else if (firstProgram.type === 'custom') { programs = sortBy( programs as UICustomProgram[],