mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-24 16:39:13 +00:00
refactor: flatten state mutations (#750)
This commit is contained in:
@@ -26,7 +26,7 @@ import {
|
||||
} from './rundownCache.js';
|
||||
import { logger } from '../../classes/Logger.js';
|
||||
import { createEvent } from '../../utils/parser.js';
|
||||
import { stateMutations } from '../../state.js';
|
||||
import { updateNumEvents } from '../../stores/runtimeState.js';
|
||||
import { runtimeService } from '../runtime-service/RuntimeService.js';
|
||||
|
||||
/**
|
||||
@@ -169,7 +169,7 @@ export async function swapEvents(from: string, to: string) {
|
||||
*/
|
||||
function updateChangeNumEvents() {
|
||||
const numEvents = EventLoader.getPlayableEvents().length;
|
||||
stateMutations.updateNumEvents(numEvents);
|
||||
updateNumEvents(numEvents);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user