Skip to content
Snippets Groups Projects
Unverified Commit 8a1d10cb authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Fix error while server rules are loading in report modal in web UI (#19385)

parent 3702afec
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,7 @@ import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Button from 'mastodon/components/button';
import Option from './components/option';
import { List as ImmutableList } from 'immutable';
const messages = defineMessages({
dislike: { id: 'report.reasons.dislike', defaultMessage: 'I don\'t like it' },
......@@ -20,7 +21,7 @@ const messages = defineMessages({
});
const mapStateToProps = state => ({
rules: state.getIn(['server', 'rules']),
rules: state.getIn(['server', 'rules'], ImmutableList()),
});
export default @connect(mapStateToProps)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment