We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3666f71 commit 669d274Copy full SHA for 669d274
1 file changed
apps/web/src/components/chat/composerMenuHighlight.ts
@@ -29,8 +29,7 @@ export function resolveComposerMenuNudgedItemId(input: {
29
}
30
31
const activeIndex = input.items.findIndex((item) => item.id === input.activeItemId);
32
- const normalizedIndex =
33
- activeIndex >= 0 ? activeIndex : input.direction === "next" ? -1 : 0;
+ const normalizedIndex = activeIndex >= 0 ? activeIndex : input.direction === "next" ? -1 : 0;
34
const offset = input.direction === "next" ? 1 : -1;
35
const nextIndex = (normalizedIndex + offset + input.items.length) % input.items.length;
36
0 commit comments