about summary refs log tree commit diff
diff options
context:
space:
mode:
authortrwnh <a@trwnh.com>2022-10-06 22:53:14 -0500
committerClaire <claire.github-309c@sitedethib.com>2022-10-09 20:31:46 +0200
commit0d0fac939dfa4380888a98742ae0ce3470c7acd3 (patch)
tree0882f088abbfc33bc1ab7f049cd675afac925d57
parent757e16a0b553508213c8707f4b6f210273dde964 (diff)
[Glitch] Fix crash in report modal
Port 99a43f0282d5115b75a564205ca7d2db31a3a945 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
-rw-r--r--app/javascript/flavours/glitch/features/report/category.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/features/report/category.js b/app/javascript/flavours/glitch/features/report/category.js
index bea21b1b7..43fb7a17c 100644
--- a/app/javascript/flavours/glitch/features/report/category.js
+++ b/app/javascript/flavours/glitch/features/report/category.js
@@ -20,7 +20,7 @@ const messages = defineMessages({
 });
 
 const mapStateToProps = state => ({
-  rules: state.get('rules'),
+  rules: state.getIn(['server', 'rules']),
 });
 
 export default @connect(mapStateToProps)