diff --git a/components/connection/ServerConnectForm.vue b/components/connection/ServerConnectForm.vue index bf76e7c4..54774d87 100644 --- a/components/connection/ServerConnectForm.vue +++ b/components/connection/ServerConnectForm.vue @@ -951,8 +951,9 @@ export default { init() { if (this.$route.query.serverConnectionConfigId) { // Handle force re-login for servers using new JWT auth but still using an old token OR refresh token failed - this.serverConfig = this.serverConnectionConfigs.find((scc) => scc.id === this.$route.query.serverConnectionConfigId) - if (this.serverConfig) { + const _serverConfig = this.serverConnectionConfigs.find((scc) => scc.id === this.$route.query.serverConnectionConfigId) + if (_serverConfig) { + this.serverConfig = { ..._serverConfig } this.setForceRelogin(this.$route.query.error) return } else {