Skip to content

Commit

Permalink
Use most recent decision for each scan in ExperimentsList (OpenImagin…
Browse files Browse the repository at this point in the history
  • Loading branch information
annehaley authored May 1, 2023
1 parent 6f15153 commit 5acf6c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web_client/src/components/ExperimentsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default defineComponent({
function decisionToRating(decisions) {
// decisions are an array of objects
if (decisions.length === 0) return {};
const rating = _.first(_.sortBy(decisions, (decision) => decision.created)).decision;
const rating = _.last(_.sortBy(decisions, (decision) => decision.created)).decision;
let color = 'grey--text';
if (rating === 'U') {
color = 'green--text';
Expand Down

0 comments on commit 5acf6c1

Please sign in to comment.