LT-292: Fixing current and prior order on timepoints

This commit is contained in:
Bruno Alves de Faria authored and Erik Ziegler committed 2016-11-15 08:25:09 +01:00
1 parent 18935a7131
commit 42ae22afab
1 file changed
+1 -1
@@ -202,7 +202,7 @@ class TimepointApi {
title(timepoint) { title(timepoint) {
const timepointName = this.name(timepoint); const timepointName = this.name(timepoint);
const all = this.all(); const all = _.clone(this.all()).reverse();
let index = -1; let index = -1;
_.each(all, (currentTimepoint, currentIndex) => { _.each(all, (currentTimepoint, currentIndex) => {
if (currentTimepoint.timepointId === timepoint.timepointId) { if (currentTimepoint.timepointId === timepoint.timepointId) {