From 893755f4cb8d88fc58e96f34b3bd30fa69365726 Mon Sep 17 00:00:00 2001 From: Claire Date: Mon, 18 Sep 2023 09:51:52 +0200 Subject: [PATCH] Fix error in Web UI when server rules cannot be fetched (#26957) --- app/javascript/mastodon/features/about/index.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/javascript/mastodon/features/about/index.jsx b/app/javascript/mastodon/features/about/index.jsx index aff38124b..72a030e9d 100644 --- a/app/javascript/mastodon/features/about/index.jsx +++ b/app/javascript/mastodon/features/about/index.jsx @@ -6,6 +6,7 @@ import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import classNames from 'classnames'; import { Helmet } from 'react-helmet'; +import { List as ImmutableList } from 'immutable'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { connect } from 'react-redux'; @@ -161,7 +162,7 @@ class About extends PureComponent {
- {!isLoading && (server.get('rules', []).isEmpty() ? ( + {!isLoading && (server.get('rules', ImmutableList()).isEmpty() ? (

) : (