Skip to content

Commit c07c474

Browse files
committed
fix: added missing guard
1 parent c71720b commit c07c474

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/resolvers/upstreamKeyers/chromaKeyer.ts

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export function resolveChromaKeyerState (oldState: StateObject, newState: StateO
66
let commands: Array<AtemCommands.AbstractCommand> = []
77

88
for (const mixEffectId in oldState.video.ME) {
9+
if (!newState.video.ME[mixEffectId]) continue
910
for (const upstreamKeyerId in oldState.video.ME[mixEffectId].upstreamKeyers) {
1011
const oldKeyer = oldState.video.ME[mixEffectId].upstreamKeyers[upstreamKeyerId]
1112
const newKeyer = newState.video.ME[mixEffectId].upstreamKeyers[upstreamKeyerId]

0 commit comments

Comments
 (0)