Skip to content

Commit 5420360

Browse files
committed
Clear on init as well
Fixes the back button never being available. Plus it makes it so you have to wait for the next fetch which I think makes sense so you are not trying to connect with potentially stale data.
1 parent 972a386 commit 5420360

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,7 @@ class CoderWorkspacesStepView(val enableNextButtonCallback: (Boolean) -> Unit) :
311311
}
312312

313313
override fun onInit(wizardModel: CoderWorkspacesWizardModel) {
314+
listTableModelOfWorkspaces.items = emptyList()
314315
enableNextButtonCallback(false)
315316
if (localWizardModel.coderURL.isNotBlank() && localWizardModel.token.isNotBlank()) {
316317
triggerWorkspacePolling(true)

0 commit comments

Comments
 (0)