File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -115,9 +115,11 @@ export default (store) => (next) => (action) => {
115115 network : undefined ,
116116 } ;
117117 }
118+ // TO FIX: I am not sure the one below is to fix, previously we were setting layout or widgets but I don't understand
119+ // how the widgets where making it back into the redux store without the set widgets
118120 return next ( edit
119- ? previousLayout . edit ? GeppettoActions . setLayout ( previousLayout . edit ) : GeppettoActions . setWidgets ( { ...Constants . EDIT_WIDGETS } )
120- : previousLayout . network ? GeppettoActions . setLayout ( previousLayout . network ) : GeppettoActions . setWidgets ( { ...Constants . DEFAULT_NETWORK_WIDGETS } ) ) ;
121+ ? GeppettoActions . setLayout ( previousLayout . edit ) && GeppettoActions . setWidgets ( { ...Constants . EDIT_WIDGETS } )
122+ : GeppettoActions . setLayout ( previousLayout . network ) && GeppettoActions . setWidgets ( { ...Constants . DEFAULT_NETWORK_WIDGETS } ) ) ;
121123 } ;
122124
123125 const toNetworkCallback = ( reset ) => ( ) => {
You can’t perform that action at this time.
0 commit comments