Skip to content

Commit 4efbf90

Browse files
committed
Fix workspace actions not being disabled initially
1 parent 16b6c4f commit 4efbf90

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,7 @@ class CoderWorkspacesStepView : CoderWizardStep<CoderWorkspacesStepSelection>(
418418
}
419419

420420
init {
421+
updateWorkspaceActions()
421422
addToCenter(component)
422423
}
423424

@@ -651,7 +652,6 @@ class CoderWorkspacesStepView : CoderWizardStep<CoderWorkspacesStepSelection>(
651652
* poller and it has not been stopped.
652653
*/
653654
private fun triggerWorkspacePolling(fetchNow: Boolean) {
654-
updateWorkspaceActions()
655655
if (poller != null && poller?.isCancelled != true) {
656656
throw Exception("Poller was not canceled before starting a new one")
657657
}

0 commit comments

Comments
 (0)