Skip to content

Commit 775883c

Browse files
committed
Fix empty lecture case
1 parent 72faaec commit 775883c

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@fails-components/noteshandler",
3-
"version": "0.0.7",
3+
"version": "0.0.8",
44
"description": "Supplies server side notes handling",
55
"author": "Marten Richter",
66
"license": "AGPL-3.0-or-later",

src/noteshandler.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ export class NotesConnection {
294294
// console.log('boards', res, 'lecture:' + lectureuuid + ':boards')
295295
const length = res.length
296296
let countdown = length
297+
if (length === 0) socket.emit('reloadBoard', { last: true })
297298
for (const index in res) {
298299
const boardnum = res[index]
299300
// console.log('sendBoardsToSocket', boardnum, lectureuuid)

0 commit comments

Comments
 (0)