fix: Show correct API URL for OBS in settings page

This commit is contained in:
Paul Bienkowski 2021-12-02 21:02:11 +01:00
parent 5309527c3e
commit 2592fe029a

View file

@ -158,7 +158,7 @@ function ApiKeyDialog({login, onGenerateNewKey}) {
</div>
<p>The API URL should be set to:</p>
<div style={{marginBottom: 16}}>
<CopyInput label="API URL" value={config?.apiUrl ?? '...'} />
<CopyInput label="API URL" value={config?.apiUrl?.replace(/\/api$/, '') ?? '...'} />
</div>
<p>
You can generate a new API Key here, which will invalidate the old one, disconnecting all devices you used it on