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
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);