From 984eaa96b7c14f32462c4634616c42fd51acd02d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Sat, 7 Mar 2026 09:25:10 +0800 Subject: [PATCH] Remove duplicate getUserData call in moveCurrentLoginUserToFirstRow Co-Authored-By: Claude Opus 4.6 --- src/stores/acctMgmt.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/stores/acctMgmt.ts b/src/stores/acctMgmt.ts index 150f7c2..7fcc49b 100644 --- a/src/stores/acctMgmt.ts +++ b/src/stores/acctMgmt.ts @@ -126,7 +126,6 @@ export const useAcctMgmtStore = defineStore('acctMgmtStore', { */ async moveCurrentLoginUserToFirstRow(fetchedUserList: User[]): Promise { const loginStore = useLoginStore(); - await loginStore.getUserData(); const loginUserData:User = loginStore.userData; const foundLoginUserIndex = fetchedUserList.findIndex(user => user.username === loginUserData.username); fetchedUserList.unshift(fetchedUserList.splice(foundLoginUserIndex, 1)[0]);