Commit 1f3f508a authored by flothoni's avatar flothoni

model_loader; fix error when loading an anlysis with hidden samples

Link to #4354
parent 32c97b7b
Pipeline #152328 passed with stages
in 10 minutes and 57 seconds
...@@ -473,10 +473,14 @@ Model_loader.prototype = { ...@@ -473,10 +473,14 @@ Model_loader.prototype = {
for (var key in dict[id]) { for (var key in dict[id]) {
clone[key][idx] = dict[id][key]; clone[key][idx] = dict[id][key];
} }
} }
} }
if ('order' in analysis) { if ('order' in analysis && 'stock_order' in analysis) {
// Jquery Extend don't work on samples.order.
clone.order = analysis.order
clone.stock_order = analysis.stock_order
} else if ('order' in analysis && !('stock_order' in analysis)) {
// Keep this behavior to ope old samples/analysis
clone.order = this.calculateOrder(clone.order); clone.order = this.calculateOrder(clone.order);
} }
return clone; return clone;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment