]> cat aescling's git repositories - mastodon.git/commitdiff
Fix type mistake in account component
authorEugen Rochko <eugen@zeonfederated.com>
Sun, 18 Sep 2016 16:44:52 +0000 (18:44 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Sun, 18 Sep 2016 16:44:52 +0000 (18:44 +0200)
app/assets/javascripts/components/features/account/index.jsx

index 14f22960b879fb2b922cec09b5b19e87ee9c8dac..edbc34826e2eb7b0105c7c5fe8fe348200e20d4b 100644 (file)
@@ -40,8 +40,8 @@ const Account = React.createClass({
 
   componentWillReceiveProps(nextProps) {
     if (nextProps.params.accountId !== this.props.params.accountId && nextProps.params.accountId) {
-      this.props.dispatch(fetchAccount(nextProps.params.accountId));
-      this.props.dispatch(fetchAccountTimeline(nextProps.params.accountId));
+      this.props.dispatch(fetchAccount(Number(nextProps.params.accountId)));
+      this.props.dispatch(fetchAccountTimeline(Number(nextProps.params.accountId)));
     }
   },