aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-10-25 17:16:51 -0500
committerJP Dillingham <jp@dillingham.me>2026-10-25 17:16:51 -0500
commit5dfff8b3c396bbe0e89a169ef46f010fb74c2ddd (patch)
tree6ff5973cc306d3e83229d38430a1c877c784e224
parent2d2f0f67716a61b5044ce8499bf82c8554fbe360 (diff)
downloadslskd-5dfff8b3c396bbe0e89a169ef46f010fb74c2ddd.tar.gz
coalesce availableResult
-rw-r--r--src/web/src/components/Rooms/RoomJoinModal.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/web/src/components/Rooms/RoomJoinModal.jsx b/src/web/src/components/Rooms/RoomJoinModal.jsx
index 5a6cf0c2..dd3c7178 100644
--- a/src/web/src/components/Rooms/RoomJoinModal.jsx
+++ b/src/web/src/components/Rooms/RoomJoinModal.jsx
@@ -25,7 +25,7 @@ const RoomJoinModal = ({ joinRoom: parentJoinRoom, ...modalOptions }) => {
const getAvailableRooms = async () => {
setLoading(true);
const availableResult = await rooms.getAvailable();
- setAvailable(availableResult);
+ setAvailable(availableResult ?? []);
setLoading(false);
};