Skip to content

Commit 6687a6c

Browse files
committed
fix: latest runs may not show up in tray menu
we are slicing prior to sorting! which means the latest runs may be sliced off...
1 parent 6069f6b commit 6687a6c

File tree

1 file changed

+1
-1
lines changed
  • plugins/plugin-codeflare/src/tray/menus/profiles

1 file changed

+1
-1
lines changed

plugins/plugin-codeflare/src/tray/menus/profiles/runs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ export function runMenuItems(
3737
runs: { runId: string; timestamp: number }[]
3838
): MenuItemConstructorOptions[] {
3939
return runs
40-
.slice(0, 10)
4140
.sort((a, b) => b.timestamp - a.timestamp)
41+
.slice(0, 10)
4242
.map((run) => ({
4343
label: `${ago(run.timestamp).padEnd(8)} \u2014 ${run.runId.slice(0, run.runId.indexOf("-"))}`,
4444
click: () => open(profile, run.runId),

0 commit comments

Comments
 (0)