Skip to content

Commit d98109c

Browse files
committed
fix(api-selector): incorrect param shape
1 parent 84da103 commit d98109c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webview-ui/src/components/chat/ApiConfigSelector.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export const ApiConfigSelector = ({
5656
case "custom":
5757
if (customOrder && customOrder.length > 0) {
5858
// Sort by custom order, with unordered items at the end
59-
const orderMap = new Map(customOrder.map((id: string, index: number) => [id, index]))
59+
const orderMap = new Map(customOrder.map((item) => [item.id, item.index]))
6060
sorted.sort((a, b) => {
6161
const aIndex = orderMap.get(a.id) ?? Number.MAX_SAFE_INTEGER
6262
const bIndex = orderMap.get(b.id) ?? Number.MAX_SAFE_INTEGER

0 commit comments

Comments
 (0)