mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-16 21:03:29 +00:00
fix: issue where event next was stale
This commit is contained in:
committed by
Carlos Valente
parent
177c9a35ec
commit
fa709dc9be
@@ -232,7 +232,7 @@ class RuntimeService {
|
||||
|
||||
// we need to reload in a few scenarios:
|
||||
// 1. we are not confident that changes do not affect running event (eg. all events where changed)
|
||||
const safeOption = typeof affectedIds === 'undefined';
|
||||
const safeOption = affectedIds === undefined;
|
||||
// 2. the edited event is in memory (now or next) running
|
||||
// behind conditional to avoid doing unnecessary work
|
||||
const eventInMemory = safeOption ? false : this.affectsLoaded(affectedIds);
|
||||
|
||||
Reference in New Issue
Block a user