Skip to content

Commit

Permalink
fix(client): sort error of pinned tabs in getCategorizedTabs
Browse files Browse the repository at this point in the history
  • Loading branch information
OneGIl committed Jan 2, 2024
1 parent c309c64 commit 612b78c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/client/src/composables/state-tab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export function getCategorizedTabs(flattenTabs: MaybeRef<(CustomTab | ModuleBuil
})
const pinned = categories.find(([{ name }]) => name === 'pinned')
if (pinned)
pinned.sort((a, b) => pinnedTabs.indexOf(a[0].name) - pinnedTabs.indexOf(b[0].name))
pinned[1].sort((a, b) => pinnedTabs.indexOf(a.name) - pinnedTabs.indexOf(b.name))
return categories
})
}

0 comments on commit 612b78c

Please sign in to comment.