diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-10-25 17:16:51 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-10-25 17:16:51 -0500 |
| commit | 5dfff8b3c396bbe0e89a169ef46f010fb74c2ddd (patch) | |
| tree | 6ff5973cc306d3e83229d38430a1c877c784e224 /src | |
| parent | 2d2f0f67716a61b5044ce8499bf82c8554fbe360 (diff) | |
| download | slskd-5dfff8b3c396bbe0e89a169ef46f010fb74c2ddd.tar.gz | |
coalesce availableResult
Diffstat (limited to 'src')
| -rw-r--r-- | src/web/src/components/Rooms/RoomJoinModal.jsx | 2 |
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); }; |
