Skip to content

Commit a9e4cfb

Browse files
committed
Fix nextAppointment bug
1 parent 7895b24 commit a9e4cfb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/mixins/patient-visits.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ export default Ember.Mixin.create(PouchDbMixin, {
4141
return null;
4242
}
4343
if (!outPatient) {
44-
return futureAppointments;
44+
let [appointment] = futureAppointments;
45+
return appointment;
4546
} else {
4647
return futureAppointments.slice(0, 3);
4748
}

0 commit comments

Comments
 (0)