Skip to content

Commit ecd0d44

Browse files
committed
fixes#12
1 parent 35446a2 commit ecd0d44

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/App.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,8 @@ export default class App extends React.Component {
3737
<Router>
3838
<Container>
3939
<Navigation items={this.navHelper()} />
40-
4140
<React.Suspense fallback={<div> Loading....</div>}>
42-
<MainTab />
41+
{this.state.activeNavItem === NAV_MAIN ? <MainTab /> : <Dnd />}
4342
{/* <Route exact path="/" render={props => <MainTab {...props} />} />
4443
<Route exact path="/dnd" render={props => <Dnd {...props} />} /> */}
4544
</React.Suspense>

src/components/main_form/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default class MainForm extends React.Component {
2222
},
2323
err: {}
2424
}
25-
this.initialState = this.state;
25+
this.initialState = { ...this.state };
2626
}
2727

2828
handleChange = (e) => {

0 commit comments

Comments
 (0)