frontend: cast type instead of ignoring typescript error

This commit is contained in:
Mose Müller 2024-07-08 15:11:05 +02:00
parent c98f191d20
commit 7d50bd5759

View File

@ -39,8 +39,7 @@ const reducer = (state: State | null, action: Action): State | null => {
return {
...state,
value: setNestedValueByPath(
/* @ts-expect-error state is not null here... */
state.value,
state.value as Record<string, SerializedObject>,
action.fullAccessPath,
action.newValue,
),