Skip to content

Commit

Permalink
filter recently viewed to just have explore and dashboard types (apac…
Browse files Browse the repository at this point in the history
  • Loading branch information
hughhhh authored and timifasubaa committed May 31, 2018
1 parent 1673345 commit e66f566
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@ export default class RecentActivity extends React.PureComponent {
render() {
const rowLimit = 50;
const mutator = function (data) {
return data.map(row => ({
name: <a href={row.item_url}>{row.item_title}</a>,
type: row.action,
time: moment.utc(row.time).fromNow(),
_time: row.time,
}));
return data
.filter(row => row.action === 'dashboard' || row.action === 'explore')
.map(row => ({
name: <a href={row.item_url}>{row.item_title}</a>,
type: row.action,
time: moment.utc(row.time).fromNow(),
_time: row.time,
}));
};
return (
<div>
Expand Down

0 comments on commit e66f566

Please sign in to comment.