aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-10-25 17:26:44 -0500
committerJP Dillingham <jp@dillingham.me>2026-10-25 17:26:44 -0500
commitb2ba22c852fcf10fc26cbcd55dfb55416754ba1b (patch)
treefee4e13a08c10a8adb5c3caac4a4702bfe54a7ec
parent40b82b68d7af3ff665e7f2b18869c3bbce4c6539 (diff)
downloadslskd-b2ba22c852fcf10fc26cbcd55dfb55416754ba1b.tar.gz
coalesce transfer response
-rw-r--r--src/web/src/components/Transfers/Transfers.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/web/src/components/Transfers/Transfers.jsx b/src/web/src/components/Transfers/Transfers.jsx
index f43ed1ae..025de9e2 100644
--- a/src/web/src/components/Transfers/Transfers.jsx
+++ b/src/web/src/components/Transfers/Transfers.jsx
@@ -17,7 +17,7 @@ const Transfers = ({ direction, server }) => {
const fetch = async () => {
try {
const response = await transfersLibrary.getAll({ direction });
- setTransfers(response);
+ setTransfers(response ?? []);
} catch (error) {
console.error(error);
toast.error(error?.response?.data ?? error?.message ?? error);