Browse Source

Set state properly.

feature/bike-tracking
Drew Larson 8 years ago
parent
commit
330d99579a
  1. 3
      bikeshop_project/assets/js/bikes/components/BikeTable/index.jsx

3
bikeshop_project/assets/js/bikes/components/BikeTable/index.jsx

@ -49,6 +49,7 @@ export default class BikeTable extends React.Component {
handleEditBike(bike) {
console.log('Bike edit!');
this.setState({
...this.state,
bikeModal: {
open: true,
bike,
@ -89,7 +90,7 @@ export default class BikeTable extends React.Component {
{bikeRows.length ?
bikeRows :
<TableRow >
<TableRowColumn>{'No members currently signed in.'}</TableRowColumn>
<TableRowColumn key="none">{'No bikes found.'}</TableRowColumn>
</TableRow>
}
</TableBody>

Loading…
Cancel
Save