fix: stale ids in cuesheet (#1657)

This commit is contained in:
Carlos Valente
2025-06-23 19:56:53 +02:00
committed by GitHub
parent 722e045b20
commit 43988ea12b
2 changed files with 2 additions and 1 deletions
@@ -41,7 +41,7 @@ export function useFlatRundown() {
// update data whenever the revision changes
useEffect(() => {
if (data.revision !== -1 && data.revision !== prevRevision) {
if (data.revision !== -1 || data.revision !== prevRevision) {
const flatRundown = data.order.map((id) => data.rundown[id]);
setFlatRunDown(flatRundown);
setPrevRevision(data.revision);