Closed jernestmyers closed 1 year ago
@dmfalke Based on your comments, it occurred to me this could be improved (and consistent with how the other reversals take place). Just wanted to point it out to ensure I'm not overlooking anything:
dataCopy.values =
selectedReferenceValues[0] !== data.independentLabels[0]
- ? [dataCopy.values[1], dataCopy.values[0]]
- : [data.values[1], data.values[0]];
+ ? [...dataCopy.values].reverse()
+ : [...data.values].reverse();
@dmfalke Based on your comments, it occurred to me this could be improved (and consistent with how the other reversals take place). Just wanted to point it out to ensure I'm not overlooking anything:
dataCopy.values = selectedReferenceValues[0] !== data.independentLabels[0] - ? [dataCopy.values[1], dataCopy.values[0]] - : [data.values[1], data.values[0]]; + ? [...dataCopy.values].reverse() + : [...data.values].reverse();
Yes, I agree!
I'm including screenshots conveying the correct order using the same study (GEMS1 Case Control) and parameter selections as shown in https://github.com/VEuPathDB/web-eda/issues/1663:
Depends on https://github.com/VEuPathDB/web-eda/pull/1667
Resolves https://github.com/VEuPathDB/web-eda/issues/1663