mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-05 19:52:15 +00:00
fix(dokploy): remove console logs from linking account component
- Eliminated unnecessary console log statements in the LinkingAccount component to clean up the code and improve performance. - Ensured that the account listing functionality remains intact while enhancing code readability.
This commit is contained in:
@@ -41,13 +41,11 @@ export function LinkingAccount() {
|
|||||||
setAccountsLoading(true);
|
setAccountsLoading(true);
|
||||||
try {
|
try {
|
||||||
const { data } = await authClient.listAccounts();
|
const { data } = await authClient.listAccounts();
|
||||||
console.log(data);
|
|
||||||
const list = Array.isArray(data)
|
const list = Array.isArray(data)
|
||||||
? data
|
? data
|
||||||
: ((data && typeof data === "object" && "accounts" in data
|
: ((data && typeof data === "object" && "accounts" in data
|
||||||
? (data as { accounts?: AccountItem[] }).accounts
|
? (data as { accounts?: AccountItem[] }).accounts
|
||||||
: null) ?? []);
|
: null) ?? []);
|
||||||
console.log(list);
|
|
||||||
setAccounts(Array.isArray(list) ? list : []);
|
setAccounts(Array.isArray(list) ? list : []);
|
||||||
} catch {
|
} catch {
|
||||||
setAccounts([]);
|
setAccounts([]);
|
||||||
|
|||||||
Reference in New Issue
Block a user