- {timesPresent && item.Appointments[0].End >= now &&
+
+ {timesPresent && room.Appointments[0].End >= now &&
-
+
{nextUp}
-
- {item.Appointments[0].Subject}
+
+ {room.Appointments[0].Subject}
}
+
{timesPresent ?
- new Date(parseInt(item.Appointments[0].Start, 10)).toLocaleTimeString([], {hour: '2-digit', minute: '2-digit'}) + ' - ' + new Date(parseInt(item.Appointments[0].End, 10)).toLocaleTimeString([], {hour: '2-digit', minute: '2-digit'})
+ new Date(parseInt(room.Appointments[0].Start, 10)).toLocaleTimeString([], {hour: '2-digit', minute: '2-digit'}) + ' - ' + new Date(parseInt(room.Appointments[0].End, 10)).toLocaleTimeString([], {hour: '2-digit', minute: '2-digit'})
: ''
}
-
- {timesPresent && item.Appointments[0].End >= now &&
- item.Appointments[0].Organizer
+
+ {timesPresent && room.Appointments[0].End >= now &&
+ room.Appointments[0].Organizer
}
-
+
@@ -124,7 +134,7 @@ class FlightboardRow extends Component {
}
FlightboardRow.propTypes = {
- item: PropTypes.string,
+ room: PropTypes.string,
now: PropTypes.instanceOf(Date),
key: PropTypes.number,
filter: PropTypes.string
diff --git a/ui-react/src/components/single-room/Display.js b/ui-react/src/components/single-room/Display.js
index 93dc7df..6f47a89 100644
--- a/ui-react/src/components/single-room/Display.js
+++ b/ui-react/src/components/single-room/Display.js
@@ -78,6 +78,14 @@ class Display extends Component {
}
}));
}
+ else {
+ this.setState(prevState => ({
+ roomDetails: {
+ ...prevState.roomDetails,
+ nextUp: ''
+ }
+ }));
+ }
}
}