Skip to content

Commit

Permalink
fix: making sure "is_active" is conveyed to unit group rendering #656 (
Browse files Browse the repository at this point in the history
…#657)

This works as intended - merging
  • Loading branch information
nbiton authored and franck-boullier committed Dec 4, 2018
1 parent 9aab904 commit 8489b56
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions imports/ui/report-explorer/report-explorer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,14 @@ class ReportExplorer extends Component {
}, {})

const reportBundle = Object.keys(unitDict).reduce((all, unitTitle) => {
const { bzId, items, unitType } = unitDict[unitTitle]
const { items, ...attrs } = unitDict[unitTitle]

// Sorting items within a unit by the order descending order of last update
items.sort(sorters[sortBy])
all.push({
items: items,
unitType,
unitTitle,
bzId
...attrs
})
return all
}, []) // Sorting by the latest case update for each
Expand Down

0 comments on commit 8489b56

Please sign in to comment.