Skip to content

Commit 78fa4d8

Browse files
committed
fix: add assertNever() to selectionReducer
1 parent f4ba02c commit 78fa4d8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/webui/src/client/ui/RundownView/SelectedElementsContext.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
RundownId,
77
SegmentId,
88
} from '@sofie-automation/corelib/dist/dataModel/Ids'
9+
import { assertNever } from '@sofie-automation/corelib/dist/lib'
910

1011
interface RundownElement {
1112
type: 'rundown'
@@ -93,6 +94,7 @@ const selectionReducer = (
9394
return new Map()
9495
}
9596
default:
97+
assertNever(action)
9698
return state
9799
}
98100
}

0 commit comments

Comments
 (0)