V2 fix roll (#323)

* chore: profile node

* fix: always roll
This commit is contained in:
Carlos Valente
2023-04-04 10:22:28 +02:00
committed by GitHub
parent 390d466673
commit e56460a940
7 changed files with 581 additions and 216 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
import { Log } from 'ontime-types';
import { Log, RuntimeStore } from 'ontime-types';
import { RUNTIME, websocketUrl } from '../api/apiConstants';
import { ontimeQueryClient } from '../queryClient';
@@ -50,7 +50,7 @@ export const connectSocket = () => {
break;
}
case 'ontime': {
runtime.setState(payload);
runtime.setState(payload as RuntimeStore);
if (import.meta.env.DEV) {
ontimeQueryClient.setQueryData(RUNTIME, data.payload);
}