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 1e94cd3 commit e9f90beCopy full SHA for e9f90be
packages/cli-kit/src/private/node/ui/components/SelectInput.tsx
@@ -166,10 +166,8 @@ function SelectInputInner<T>(
166
const items = sortBy(rawItems, (item) => {
167
// Items without groups ("Other") always go last
168
if (!item.group) return Number.MAX_SAFE_INTEGER + 1
169
-
170
// If no groupOrder specified, use default behavior
171
- if (!groupOrder) return Number.MAX_SAFE_INTEGER
172
+ if (!groupOrder) return Number.MAX_SAFE_INTEGER
173
// Items with groups get their position from groupOrder, or MAX_SAFE_INTEGER if not specified
174
const index = groupOrder.indexOf(item.group)
175
return index === -1 ? Number.MAX_SAFE_INTEGER : index
0 commit comments