Skip to content

Commit

Permalink
fix(client): sort error of pinned tabs (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
OneGIl authored Jan 3, 2024
1 parent 91f32ef commit abbb94a
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 @@ -143,7 +143,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 abbb94a

Please sign in to comment.