refactor: swap maintains schedule

This commit is contained in:
Carlos Valente
2025-03-28 21:35:23 +01:00
parent de0ac92052
commit 7a78ed4720
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 };