diff options
author | Nolan Lawson <nolan@nolanlawson.com> | 2017-10-30 19:27:48 -0700 |
---|---|---|
committer | Yamagishi Kazutoshi <ykzts@desire.sh> | 2017-10-31 11:27:48 +0900 |
commit | b254e6ca5f780569e3347deb456b84531b4538ae (patch) | |
tree | e184b583f6113e3306bea1b20e4fd3b100456efd /app/javascript/mastodon/features/compose/containers/navigation_container.js | |
parent | 29609fbb6a2bdfb8937077fac9f1aa280f730633 (diff) |
Refactor initial state: "me" (#5563)
* Refactor initial state: "me" * remove "me" from reducers/meta.js
Diffstat (limited to 'app/javascript/mastodon/features/compose/containers/navigation_container.js')
-rw-r--r-- | app/javascript/mastodon/features/compose/containers/navigation_container.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/javascript/mastodon/features/compose/containers/navigation_container.js b/app/javascript/mastodon/features/compose/containers/navigation_container.js index 8cc53c087..eb9f3ea45 100644 --- a/app/javascript/mastodon/features/compose/containers/navigation_container.js +++ b/app/javascript/mastodon/features/compose/containers/navigation_container.js @@ -1,9 +1,10 @@ import { connect } from 'react-redux'; import NavigationBar from '../components/navigation_bar'; +import { me } from '../../../initial_state'; const mapStateToProps = state => { return { - account: state.getIn(['accounts', state.getIn(['meta', 'me'])]), + account: state.getIn(['accounts', me]), }; }; |