Skip to content

Commit

Permalink
added lifecycle method to fix next up bug in flightboard
Browse files Browse the repository at this point in the history
  • Loading branch information
danxfisher committed Jul 26, 2018
1 parent 689e1de commit 5c55c20
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ui-react/src/components/flightboard/FlightboardRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class FlightboardRow extends Component {
this.setState({
timesPresent: true
});

if (room.Busy) {
this.setState({
nextUp: ''
Expand All @@ -38,6 +38,10 @@ class FlightboardRow extends Component {
}
}

componentDidUpdate = () => {
this.getAppointmentTime();
}

componentDidMount = () => {
this.getAppointmentTime();
}
Expand Down

0 comments on commit 5c55c20

Please sign in to comment.