fix: add error logging for various API calls across components
Deploy to VPS / deploy (push) Successful in 2m20s
Deploy to VPS / deploy (push) Successful in 2m20s
This commit is contained in:
@@ -82,8 +82,8 @@ export default function DashboardPage() {
|
||||
const detail = await dashboardApi.getUserDetail(userId);
|
||||
setActiveUser(detail);
|
||||
setView("user-detail");
|
||||
} catch {
|
||||
/* ignore */
|
||||
} catch (err) {
|
||||
console.error("dashboard/userDetail:", err);
|
||||
}
|
||||
}}
|
||||
/>
|
||||
@@ -97,8 +97,8 @@ export default function DashboardPage() {
|
||||
const detail = await dashboardApi.getChannelDetail(chId);
|
||||
setActiveChannel(detail);
|
||||
setView("channel-detail");
|
||||
} catch {
|
||||
/* ignore */
|
||||
} catch (err) {
|
||||
console.error("dashboard/channelDetail:", err);
|
||||
}
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user