From 5c55c206104e977f25f9de730802abfbf4718044 Mon Sep 17 00:00:00 2001 From: r1bb3t Date: Thu, 26 Jul 2018 13:21:17 -0700 Subject: [PATCH] added lifecycle method to fix next up bug in flightboard --- ui-react/src/components/flightboard/FlightboardRow.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ui-react/src/components/flightboard/FlightboardRow.js b/ui-react/src/components/flightboard/FlightboardRow.js index 21cc8d1..7082382 100644 --- a/ui-react/src/components/flightboard/FlightboardRow.js +++ b/ui-react/src/components/flightboard/FlightboardRow.js @@ -23,7 +23,7 @@ class FlightboardRow extends Component { this.setState({ timesPresent: true }); - + if (room.Busy) { this.setState({ nextUp: '' @@ -38,6 +38,10 @@ class FlightboardRow extends Component { } } + componentDidUpdate = () => { + this.getAppointmentTime(); + } + componentDidMount = () => { this.getAppointmentTime(); }