Skip to content

Commit

Permalink
Fix CircleDropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
noellabo committed Aug 21, 2021
1 parent c939f82 commit 11e61bf
Showing 1 changed file with 5 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,11 @@ import { connect } from 'react-redux';
import CircleDropdown from '../components/circle_dropdown';
import { changeComposeCircle } from '../../../actions/compose';

const mapStateToProps = state => {
let value = state.getIn(['compose', 'circle_id']);
value = value === null ? '' : value;

return {
value: value,
visible: state.getIn(['compose', 'privacy']) === 'limited',
limitedReply: state.getIn(['compose', 'privacy']) === 'limited' && state.getIn(['compose', 'reply_status', 'visibility']) === 'limited',
};
};
const mapStateToProps = state => ({
value: state.getIn(['compose', 'circle_id']) ?? '',
visible: state.getIn(['compose', 'privacy']) === 'limited',
limitedReply: state.getIn(['compose', 'privacy']) === 'limited' && state.getIn(['compose', 'reply_status', 'visibility']) === 'limited',
});

const mapDispatchToProps = dispatch => ({

Expand Down

0 comments on commit 11e61bf

Please sign in to comment.