Skip to content

Commit

Permalink
fix: fix show sorting in cyclic shuffle
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbenincasa committed Jan 4, 2025
1 parent e2d6c03 commit 9122018
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion web/src/components/InlineModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export function InlineModal<ItemType, ItemKind extends string>(
extractItemId,
renderChildren,
} = props;
console.log(props);
const previousItemGuid = usePrevious(itemGuid);
const [containerWidth, setContainerWidth] = useState(0);
const [itemWidth, setItemWidth] = useState(0);
Expand Down
9 changes: 5 additions & 4 deletions web/src/hooks/programming_controls/useCyclicShuffle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[],
Expand Down

0 comments on commit 9122018

Please sign in to comment.