From 9954731340694e1018c8b8ce063a9aeddcd5844c Mon Sep 17 00:00:00 2001 From: Kendal Cormany Date: Mon, 29 Mar 2021 22:06:13 -0700 Subject: [PATCH] Not sure why its not defined --- src/reducers/ui/inputValue.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reducers/ui/inputValue.js b/src/reducers/ui/inputValue.js index 10e58eb..d8bd6e6 100644 --- a/src/reducers/ui/inputValue.js +++ b/src/reducers/ui/inputValue.js @@ -6,7 +6,7 @@ export default (state = initialState, action) => { switch (action.type) { case TYPE.INITIALIZE: { const { moduleState } = action.payload; - return (moduleState && moduleState.ui.inputValue) || initialState; + return (moduleState && moduleState.ui?.inputValue) || initialState; } case TYPE.UPDATE_INPUT: