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:
1 parent
74eabb7231
commit
1021301656
11 files changed
+56
-51
No files matched your search
@@ -28,8 +28,8 @@ export function useRecordings(): UseRecordingsReturn {
|
||||
try {
|
||||
const result = await recordingsApi.list(50);
|
||||
setRecordings(result.items);
|
||||
} catch {
|
||||
// ignore
|
||||
} catch (err) {
|
||||
console.error("useRecordings/refresh:", err);
|
||||
} finally {
|
||||
setLoading(false);
|
||||
}
|
||||
@@ -39,8 +39,8 @@ export function useRecordings(): UseRecordingsReturn {
|
||||
try {
|
||||
await recordingsApi.delete(id);
|
||||
setRecordings((prev) => prev.filter((r) => r.id !== id));
|
||||
} catch {
|
||||
// ignore
|
||||
} catch (err) {
|
||||
console.error("useRecordings/remove:", err);
|
||||
}
|
||||
}, []);
|
||||
|
||||
|
||||
Reference in new issue
Block a user