Skip to content

Commit 086484a

Browse files
committed
Fix reloadboard with empty lecture
1 parent 95eff2c commit 086484a

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/notepadhandler",
3-
"version": "0.0.10",
3+
"version": "0.0.11",
44
"description": "Supplies server side notepad handling",
55
"author": "Marten Richter",
66
"license": "AGPL-3.0-or-later",

src/notepadhandler.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -979,6 +979,7 @@ export class NoteScreenConnection {
979979
// console.log('boards', res, 'lecture:' + lectureuuid + ':boards')
980980
const length = res.length
981981
let countdown = length
982+
if (length === 0) socket.emit('reloadBoard', { last: true })
982983
for (const index in res) {
983984
const boardnum = res[index]
984985
// console.log('sendBoardsToSocket', boardnum, lectureuuid)

0 commit comments

Comments
 (0)