Fix issue with ServerInfo crashing the modal (#8364)

This commit is contained in:
Michael Telatynski
2022-04-19 17:21:40 +01:00
committed by GitHub
parent f099fdb906
commit 56cf9212d3

View File

@@ -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>
}