Skip to content

Commit 611593e

Browse files
committed
fix: ui bindings
- don't recreate a new data model because it screws up the bindings to the UI components - instead reset the URL and token
1 parent ed3e121 commit 611593e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/kotlin/com/coder/gateway/views/steps/CoderWorkspacesStepView.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,8 @@ class CoderWorkspacesStepView(val enableNextButtonCallback: (Boolean) -> Unit) :
330330

331331
else -> {
332332
logger.warn("An exception was encountered while opening ${localWizardModel.coderURL}. Reason: ${e.message}")
333-
localWizardModel = CoderWorkspacesWizardModel()
333+
localWizardModel.coderURL = "https://coder.example.com"
334+
localWizardModel.token = ""
334335
tfUrl?.text = localWizardModel.coderURL
335336
}
336337
}

0 commit comments

Comments
 (0)