Skip to content

Commit 1014cde

Browse files
committed
fix: reorder alphabetical cloud model on starter screen
1 parent b002069 commit 1014cde

2 files changed

Lines changed: 3 additions & 11 deletions

File tree

  • web/screens

web/screens/Settings/Hotkeys/index.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,6 @@ const availableHotkeys = [
3939
combination: 'Shift Enter',
4040
description: 'Insert a new line (in input field)',
4141
},
42-
{
43-
combination: 'Arrow Up',
44-
description: 'Navigate to previous option (within search dialog)',
45-
},
46-
{
47-
combination: 'Arrow Down',
48-
description: 'Navigate to next option (within search dialog)',
49-
},
5042
]
5143

5244
const Hotkeys = () => {

web/screens/Thread/ThreadCenterPanel/ChatBody/OnDeviceStarterScreen/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ const OnDeviceStarterScreen = ({ extensionHasSettings }: Props) => {
8585

8686
const remoteModelEngine = remoteModel.map((x) => x.engine)
8787

88-
const groupByEngine = remoteModelEngine.filter(function (item, index) {
89-
if (remoteModelEngine.indexOf(item) === index) return item
90-
})
88+
const groupByEngine = remoteModelEngine
89+
.filter((item, index) => remoteModelEngine.indexOf(item) === index)
90+
.sort((a, b) => a.localeCompare(b))
9191

9292
const itemsPerRow = 5
9393

0 commit comments

Comments
 (0)