Permalink
Browse files

Sanitize

  • Loading branch information...
1 parent 1328279 commit 6bdeb11c3ca9a8fdbeb22671f9775b74caed66fd @SamuelHassine SamuelHassine committed Jan 11, 2017
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/containers/authenticated/exercise/execution/Index.js
@@ -307,8 +307,8 @@ const filterInjectsPending = (state, ownProps) => {
const exerciseId = ownProps.params.exerciseId
let injectsFilterAndSorting = R.pipe(
R.values,
- R.sort((a, b) => a.inject_date > b.inject_date),
- R.filter(n => n.inject_exercise === exerciseId && n.inject_status.status_name === 'PENDING')
+ R.filter(n => n.inject_exercise === exerciseId && n.inject_status.status_name === 'PENDING'),
+ R.sort((a, b) => a.inject_date > b.inject_date)
)
return injectsFilterAndSorting(injects)
}
@@ -326,12 +326,12 @@ const filterInjectsProcessed = (state, ownProps) => {
const exerciseId = ownProps.params.exerciseId
let injectsFilterAndSorting = R.pipe(
R.values,
- R.sort((a, b) => a.inject_date < b.inject_date),
R.filter(n => n.inject_exercise === exerciseId && (
n.inject_status.status_name === 'SUCCESS' ||
n.inject_status.status_name === 'ERROR' ||
n.inject_status.status_name === 'PARTIAL')
- )
+ ),
+ R.sort((a, b) => a.inject_date > b.inject_date),
)
return injectsFilterAndSorting(injects)
}

0 comments on commit 6bdeb11

Please sign in to comment.