Fix disappearing poll button when media is uploaded
This commit is contained in:
parent
7342325e23
commit
444e3641ee
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@ import PollButton from '../components/poll_button';
|
||||||
import { addPoll, removePoll } from '../../../actions/compose';
|
import { addPoll, removePoll } from '../../../actions/compose';
|
||||||
|
|
||||||
const mapStateToProps = state => ({
|
const mapStateToProps = state => ({
|
||||||
unavailable: state.getIn(['compose', 'is_uploading']) || (state.getIn(['compose', 'media_attachments']).size > 0),
|
unavailable: state.getIn(['compose', 'is_uploading']),
|
||||||
active: state.getIn(['compose', 'poll']) !== null,
|
active: state.getIn(['compose', 'poll']) !== null,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue