Remove unnecessary if in App.handleConfig

config.json is merged with baseConfig. The latter is guaranteed
to contain a "server" field.
This commit is contained in:
Simon Ser 2022-09-12 09:54:38 +02:00
parent a13f74d466
commit 34d3bd6df9

View file

@ -254,7 +254,6 @@ export default class App extends Component {
let connectParams = { ...this.state.connectParams };
if (config.server) {
if (typeof config.server.url === "string") {
connectParams.url = config.server.url;
}
@ -280,7 +279,6 @@ export default class App extends Component {
console.error("Error in config.json: cannot set server.autoconnect = true and server.auth = \"mandatory\"");
connectParams.autoconnect = false;
}
}
let autoconnect = store.autoconnect.load();
if (autoconnect) {