mirror of
https://github.com/tiqi-group/pydase.git
synced 2026-01-16 00:49:26 +01:00
frontend: cast type instead of ignoring typescript error
This commit is contained in:
@@ -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,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user