mirror of
https://github.com/tiqi-group/pydase.git
synced 2026-01-21 03:12:25 +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 {
|
return {
|
||||||
...state,
|
...state,
|
||||||
value: setNestedValueByPath(
|
value: setNestedValueByPath(
|
||||||
/* @ts-expect-error state is not null here... */
|
state.value as Record<string, SerializedObject>,
|
||||||
state.value,
|
|
||||||
action.fullAccessPath,
|
action.fullAccessPath,
|
||||||
action.newValue,
|
action.newValue,
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user