]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Fix crash in report modal
authortrwnh <a@trwnh.com>
Fri, 7 Oct 2022 03:53:14 +0000 (22:53 -0500)
committeraescling <aescling+gitlab@cat.family>
Thu, 17 Nov 2022 05:28:25 +0000 (00:28 -0500)
Port 99a43f0282d5115b75a564205ca7d2db31a3a945 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
app/javascript/flavours/glitch/features/report/category.js

index bea21b1b7e8612c7005add9296acc5d6eb897ea7..43fb7a17cac89189515c76b5ce0e7e0eda042481 100644 (file)
@@ -20,7 +20,7 @@ const messages = defineMessages({
 });
 
 const mapStateToProps = state => ({
-  rules: state.get('rules'),
+  rules: state.getIn(['server', 'rules']),
 });
 
 export default @connect(mapStateToProps)