[Glitch] Prevent duplicate concurrent calls of /api/*/instance in web UI

Port 5b46345459 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
mogaminsk
2023-07-02 18:12:16 +09:00
committed by Claire
parent c49e339c89
commit 587ddc2c7f
3 changed files with 16 additions and 4 deletions

View File

@@ -161,7 +161,7 @@ class About extends PureComponent {
</Section>
<Section title={intl.formatMessage(messages.rules)}>
{!isLoading && (server.get('rules').isEmpty() ? (
{!isLoading && (server.get('rules', []).isEmpty() ? (
<p><FormattedMessage id='about.not_available' defaultMessage='This information has not been made available on this server.' /></p>
) : (
<ol className='rules-list'>