Skip to content

Commit 167a1ae

Browse files
committed
Possible undefined in empty rooms
1 parent dca3b9e commit 167a1ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/rooms/+page.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ async function printRoom(room, create = false) {
310310
}
311311
312312
const active = $swarm.active.find(a => a.key === room.key)
313-
$rooms.thisRoom.topic = active.topic
313+
$rooms.thisRoom.topic = active?.topic
314314
$swarm.activeSwarm = active
315315
316316
checkReactions(messages, false)

0 commit comments

Comments
 (0)