refactor: swap maintains schedule

This commit is contained in:
Carlos Valente
2025-03-28 21:35:23 +01:00
committed by arc-alex
parent ef73c87e2f
commit 84fac739f0
3 changed files with 14 additions and 2 deletions
@@ -525,6 +525,8 @@ export function swap({ rundown, fromId, toId }: SwapArgs): MutatingReturn {
rundown.entries[fromId] = newFrom;
rundown.entries[toId] = newTo;
newFrom.revision++;
newTo.revision++;
setIsStale();
return { newRundown: rundown, didMutate: true };