Fix issue with ServerInfo crashing the modal (#8364)
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…
Reference in New Issue