From 3a85a483c1299b94e754500eaeb00df4e89fcde2 Mon Sep 17 00:00:00 2001 From: cv <34649812+cpvalente@users.noreply.github.com> Date: Fri, 29 Oct 2021 13:25:45 +0200 Subject: [PATCH] fix: load titles fixed issue where titles where not loaded in roll mode --- client/src/features/info/Info.jsx | 2 ++ server/src/classes/EventTimer.js | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/client/src/features/info/Info.jsx b/client/src/features/info/Info.jsx index fc04fdcbe..e5dbb67c5 100644 --- a/client/src/features/info/Info.jsx +++ b/client/src/features/info/Info.jsx @@ -20,6 +20,8 @@ export default function Info() { const [selected, setSelected] = useState('No events'); const logData = []; + console.log(`titles`, titles); + // handle incoming messages useEffect(() => { if (socket == null) return; diff --git a/server/src/classes/EventTimer.js b/server/src/classes/EventTimer.js index a93469ea0..89b4433b0 100644 --- a/server/src/classes/EventTimer.js +++ b/server/src/classes/EventTimer.js @@ -996,7 +996,8 @@ export class EventTimer extends Timer { if (nextIndex != null) { // load titles - this._loadThisTitles(nextIndex, 'next'); + const e = this._eventlist[nextIndex]; + this._loadThisTitles(e, 'next'); if (foundNow == null) { if (this.secondaryTimer == null)