Fix array destructuring bug in moveJustCreateUserToFirstRow

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-09 13:50:18 +08:00
parent ac4405068f
commit 8f610f1244

View File

@@ -305,7 +305,7 @@ const moveJustCreateUserToFirstRow = () => {
(user) => user.username === acctMgmtStore.justCreateUsername, (user) => user.username === acctMgmtStore.justCreateUsername,
); );
if (index !== -1) { if (index !== -1) {
const [justCreateUser] = acctMgmtStore.allUserAccountList[index]; const justCreateUser = acctMgmtStore.allUserAccountList[index];
infiniteAcctData.value.unshift(justCreateUser); infiniteAcctData.value.unshift(justCreateUser);
} }
} }