mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-06 04:36:21 +02:00
Fix issue with ServerInfo crashing the modal (#8364)
This commit is contained in:
parent
f099fdb906
commit
56cf9212d3
@ -74,13 +74,13 @@ const ServerInfo = ({ onBack }: IDevtoolsProps) => {
|
||||
}
|
||||
|
||||
<h4>{ _t("Client Versions") }</h4>
|
||||
{ capabilities !== FAILED_TO_LOAD
|
||||
{ clientVersions !== FAILED_TO_LOAD
|
||||
? <SyntaxHighlight language="json" children={JSON.stringify(clientVersions, null, 4)} />
|
||||
: <div>{ _t("Failed to load.") }</div>
|
||||
}
|
||||
|
||||
<h4>{ _t("Server Versions") }</h4>
|
||||
{ capabilities !== FAILED_TO_LOAD
|
||||
{ serverVersions !== FAILED_TO_LOAD
|
||||
? <SyntaxHighlight language="json" children={JSON.stringify(serverVersions, null, 4)} />
|
||||
: <div>{ _t("Failed to load.") }</div>
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user