Skip to content

Commit

Permalink
refactor: recentActions ajax call is redundant (#2722)
Browse files Browse the repository at this point in the history
  • Loading branch information
S-YOU authored and mistercrunch committed May 7, 2017
1 parent a6e1e18 commit 55d3b01
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions superset/assets/javascripts/profile/components/RecentActivity.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
import moment from 'moment';
import $ from 'jquery';

import TableLoader from './TableLoader';

Expand All @@ -10,18 +9,6 @@ const propTypes = {
};

export default class RecentActivity extends React.PureComponent {
constructor(props) {
super(props);
this.state = {
recentActions: [],
};
}

componentWillMount() {
$.get(`/superset/recent_activity/${this.props.user.userId}/`, (data) => {
this.setState({ recentActions: data });
});
}
render() {
const mutator = function (data) {
return data.map(row => ({
Expand Down

0 comments on commit 55d3b01

Please sign in to comment.