From 612b78cdff7aca78bb651eb6a2db7b6ef99406bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=83=E5=90=89/=EC=9B=90=EA=B8=B8/OneGil?= Date: Wed, 3 Jan 2024 00:22:55 +0800 Subject: [PATCH] fix(client): sort error of pinned tabs in getCategorizedTabs --- packages/client/src/composables/state-tab.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/client/src/composables/state-tab.ts b/packages/client/src/composables/state-tab.ts index 9e86af84c..cb7c0efe6 100644 --- a/packages/client/src/composables/state-tab.ts +++ b/packages/client/src/composables/state-tab.ts @@ -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 }) }