Use nullish coalescing operator (S6606) and fix duplicate id (S7930)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-10 00:55:19 +08:00
co-authored by Claude Opus 4.6
parent ad53494f26
commit 5a936cad97
2 changed files with 22 additions and 22 deletions
+1 -1
View File
@@ -184,7 +184,7 @@ export const useAcctMgmtStore = defineStore('acctMgmtStore', {
try {
const response = await apiClient.put(apiEdit, {
username: editDetail.newUsername != null ? editDetail.newUsername : editDetail.username,
username: editDetail.newUsername ?? editDetail.username,
password: editDetail.password,
name: editDetail.name,
is_active: editDetail.is_active,