File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -37,9 +37,8 @@ export default class App extends React.Component {
37
37
< Router >
38
38
< Container >
39
39
< Navigation items = { this . navHelper ( ) } />
40
-
41
40
< React . Suspense fallback = { < div > Loading....</ div > } >
42
- < MainTab />
41
+ { this . state . activeNavItem === NAV_MAIN ? < MainTab /> : < Dnd /> }
43
42
{ /* <Route exact path="/" render={props => <MainTab {...props} />} />
44
43
<Route exact path="/dnd" render={props => <Dnd {...props} /> } /> */ }
45
44
</ React . Suspense >
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export default class MainForm extends React.Component {
22
22
} ,
23
23
err : { }
24
24
}
25
- this . initialState = this . state ;
25
+ this . initialState = { ... this . state } ;
26
26
}
27
27
28
28
handleChange = ( e ) => {
You can’t perform that action at this time.
0 commit comments