Applies to the staff interface and is meant to avoid making it appear
that a slot time had never been chosen.
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
hash.slot.substring(0, 10),
).then(function(times) {
hash.available_times = times.map(function(t) { return t[0]; });
+ if (hash.slot_time !== null && hash.available_times.indexOf(hash.slot_time) === -1) {
+ hash.available_times.unshift(hash.slot_time);
+ }
});
return hash;
}
dateStr,
).then(function(times) {
hash.available_times = times.map(function(t) { return t[0]; });
+ if (hash.slot_time !== null && hash.available_times.indexOf(hash.slot_time) === -1) {
+ hash.available_times.unshift(hash.slot_time);
+ }
});
}