Merge pull request #3114 from matrix-org/dbkr/allow_server_change_if_dead

Allow changing server if validation has failed
This commit is contained in:
David Baker 2019-06-18 09:37:31 +01:00 committed by GitHub
commit 5e7b4564cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

@ -104,6 +104,9 @@ export default class ServerConfig extends React.PureComponent {
const stateForError = AutoDiscoveryUtils.authComponentStateForError(e);
if (!stateForError.isFatalError) {
this.setState({
busy: false,
});
// carry on anyway
const result = await AutoDiscoveryUtils.validateServerConfigWithStaticUrls(hsUrl, isUrl, true);
this.props.onServerConfigChange(result);