Skip to content

Commit 669d274

Browse files
Format composer menu highlight helper
Co-authored-by: Julius Marminge <juliusmarminge@users.noreply.github.com>
1 parent 3666f71 commit 669d274

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

apps/web/src/components/chat/composerMenuHighlight.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ export function resolveComposerMenuNudgedItemId(input: {
2929
}
3030

3131
const activeIndex = input.items.findIndex((item) => item.id === input.activeItemId);
32-
const normalizedIndex =
33-
activeIndex >= 0 ? activeIndex : input.direction === "next" ? -1 : 0;
32+
const normalizedIndex = activeIndex >= 0 ? activeIndex : input.direction === "next" ? -1 : 0;
3433
const offset = input.direction === "next" ? 1 : -1;
3534
const nextIndex = (normalizedIndex + offset + input.items.length) % input.items.length;
3635

0 commit comments

Comments
 (0)