1
0
mirror of https://github.com/fspc/workstand.git synced 2025-02-23 09:13:23 -05:00

Set state properly.

This commit is contained in:
Drew Larson 2017-01-29 15:21:36 -06:00
parent 8e619d6ae2
commit 330d99579a

View File

@ -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,
@ -88,8 +89,8 @@ export default class BikeTable extends React.Component {
<TableBody displayRowCheckbox={false}>
{bikeRows.length ?
bikeRows :
<TableRow>
<TableRowColumn>{'No members currently signed in.'}</TableRowColumn>
<TableRow >
<TableRowColumn key="none">{'No bikes found.'}</TableRowColumn>
</TableRow>
}
</TableBody>