From 330d99579a6fca1fb0b83cd2863a8e436a7c84e6 Mon Sep 17 00:00:00 2001 From: Drew Larson Date: Sun, 29 Jan 2017 15:21:36 -0600 Subject: [PATCH] Set state properly. --- .../assets/js/bikes/components/BikeTable/index.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bikeshop_project/assets/js/bikes/components/BikeTable/index.jsx b/bikeshop_project/assets/js/bikes/components/BikeTable/index.jsx index 421aba1..1b55352 100644 --- a/bikeshop_project/assets/js/bikes/components/BikeTable/index.jsx +++ b/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, @@ -88,8 +89,8 @@ export default class BikeTable extends React.Component { {bikeRows.length ? bikeRows : - - {'No members currently signed in.'} + + {'No bikes found.'} }