diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 6a509a1..3f71287 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -32,6 +32,9 @@ const reducer = (state: State, action: Action): State => { case 'SET_DATA': return action.data; case 'UPDATE_ATTRIBUTE': { + if (state === null) { + return null; + } return { ...state, value: setNestedValueByPath(state.value, action.fullAccessPath, action.newValue)