fix: add null check to debug log

This commit is contained in:
2026-06-05 11:17:27 +08:00
parent 9e5bbbb948
commit 2b0345722e
+1 -1
View File
@@ -154,7 +154,7 @@ function notifyBackendUnavailable(message: string) {
} }
apiClient.interceptors.request.use((config) => { apiClient.interceptors.request.use((config) => {
console.log("[API DEBUG]", config.method?.toUpperCase(), config.baseURL, config.url, "→", config.baseURL + config.url); console.log("[API DEBUG]", config.method?.toUpperCase(), config.baseURL || "", config.url || "", "→", (config.baseURL || "") + (config.url || ""));
const token = localStorage.getItem("live-recorder-token"); const token = localStorage.getItem("live-recorder-token");
if (token) { if (token) {
config.headers.Authorization = `Bearer ${token}`; config.headers.Authorization = `Bearer ${token}`;