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:
parent
8e619d6ae2
commit
330d99579a
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user