about summary refs log tree commit diff
path: root/app/assets/javascripts/components/features/account_timeline/index.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/components/features/account_timeline/index.jsx')
-rw-r--r--app/assets/javascripts/components/features/account_timeline/index.jsx3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/assets/javascripts/components/features/account_timeline/index.jsx b/app/assets/javascripts/components/features/account_timeline/index.jsx
index 6e2356dc1..6613600cc 100644
--- a/app/assets/javascripts/components/features/account_timeline/index.jsx
+++ b/app/assets/javascripts/components/features/account_timeline/index.jsx
@@ -2,6 +2,7 @@ import { connect } from 'react-redux';
 import PureRenderMixin from 'react-addons-pure-render-mixin';
 import ImmutablePropTypes from 'react-immutable-proptypes';
 import {
+  fetchAccount,
   fetchAccountTimeline,
   expandAccountTimeline
 } from '../../actions/accounts';
@@ -30,11 +31,13 @@ const AccountTimeline = React.createClass({
   mixins: [PureRenderMixin],
 
   componentWillMount () {
+    this.props.dispatch(fetchAccount(Number(this.props.params.accountId)));
     this.props.dispatch(fetchAccountTimeline(Number(this.props.params.accountId)));
   },
 
   componentWillReceiveProps(nextProps) {
     if (nextProps.params.accountId !== this.props.params.accountId && nextProps.params.accountId) {
+      this.props.dispatch(fetchAccount(Number(nextProps.params.accountId)));
       this.props.dispatch(fetchAccountTimeline(Number(nextProps.params.accountId)));
     }
   },