gearheads
/
mastodon
Archived
2
0
Fork 0

Fix WebUI crash when listing server blocks and rationale is not available (#20408)

Regression from #20391

Fixes #20405
gh/stable
Claire 2022-11-11 21:23:03 +01:00 committed by GitHub
parent 96f51e593f
commit 93a6ebc83d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ class About extends React.PureComponent {
<span className='about__domain-blocks__domain__type' title={intl.formatMessage(severityMessages[block.get('severity')].explanation)}>{intl.formatMessage(severityMessages[block.get('severity')].title)}</span>
</div>
<p>{block.get('comment').length > 0 ? block.get('comment') : <FormattedMessage id='about.domain_blocks.no_reason_available' defaultMessage='Reason not available' />}</p>
<p>{(block.get('comment') || '').length > 0 ? block.get('comment') : <FormattedMessage id='about.domain_blocks.no_reason_available' defaultMessage='Reason not available' />}</p>
</div>
))}
</div>