[Glitch] Fix error while server rules are loading in report modal in web UI

Port 4c7b5fb6c1 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
rebase/4.0.0rc1
Eugen Rochko 2022-10-18 18:57:01 +02:00 committed by Claire
parent 39ec0e8398
commit 2aa70c112a
1 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@ import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Button from 'flavours/glitch/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)