Fix disappearing poll button when media is uploaded

This commit is contained in:
Alex Gleason 2020-07-28 14:42:58 -05:00
parent 7342325e23
commit 444e3641ee
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -3,7 +3,7 @@ import PollButton from '../components/poll_button';
import { addPoll, removePoll } from '../../../actions/compose';
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,
});