From 4ef844298fdb0d6fb41eac760f8ac00cee82b3bc Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Tue, 1 Aug 2017 09:04:28 -0400 Subject: Show flagged posts consistently throughout the UI (#7063) --- webapp/components/post_view/post_info/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'webapp/components/post_view/post_info/index.js') diff --git a/webapp/components/post_view/post_info/index.js b/webapp/components/post_view/post_info/index.js index 749ec5aba..041080da8 100644 --- a/webapp/components/post_view/post_info/index.js +++ b/webapp/components/post_view/post_info/index.js @@ -5,7 +5,7 @@ import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import {removePost, addReaction} from 'mattermost-redux/actions/posts'; -import {getBool} from 'mattermost-redux/selectors/entities/preferences'; +import {get, getBool} from 'mattermost-redux/selectors/entities/preferences'; import {Preferences} from 'utils/constants.jsx'; @@ -15,7 +15,7 @@ function mapStateToProps(state, ownProps) { return { ...ownProps, useMilitaryTime: getBool(state, Preferences.CATEGORY_DISPLAY_SETTINGS, Preferences.USE_MILITARY_TIME, false), - isFlagged: getBool(state, Preferences.CATEGORY_FLAGGED_POST, ownProps.post.id) + isFlagged: get(state, Preferences.CATEGORY_FLAGGED_POST, ownProps.post.id, null) != null }; } -- cgit v1.2.3-1-g7c22