Skip to content

Commit

Permalink
fix bug of redirecting to '/dashboard'
Browse files Browse the repository at this point in the history
  • Loading branch information
John Edward committed May 20, 2017
1 parent 99d79e2 commit 2156aff
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions imports/ui/components/dashboard/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,13 @@
import { Meteor } from 'meteor/meteor';
import React, { Component, PropTypes } from 'react';
import { createContainer } from 'meteor/react-meteor-data';
import { browserHistory } from 'react-router';

import SideBar from './sidebar/sidebar';
import AppHeader from '../app/app_header';
import AppFooter from '../app/app_footer';
import StatisticView from './views/statistics/statistics';

class Dashboard extends Component {
componentDidMount() {
// i just want to show browser url in '/dashboard'.
// So, this component is repeated after index rendered <Dashboard />
browserHistory.push('/dashboard');
}

getContentView() {
return this.props.children && <StatisticView />;
}
Expand Down

0 comments on commit 2156aff

Please # to comment.