Skip to content

Commit

Permalink
allow tasks to be null (hobbyfarm#218)
Browse files Browse the repository at this point in the history
Co-authored-by: Philip Prinz <[email protected]>
  • Loading branch information
PhPrinz and Philip Prinz committed May 31, 2024
1 parent 64f17eb commit 9fb7502
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export class ScenarioWizardComponent implements OnInit {

this.wizard.currentPageChanged.subscribe(() => {
this.validationErrors = []
if (this.selectedscenario.vm_tasks.length > 0) {
if (this.selectedscenario.vm_tasks?.length > 0) {
this.validateTaskDefinitions()
}
this.disableFinalizeButton = !(this.validationErrors.length == 0)
Expand Down

0 comments on commit 9fb7502

Please sign in to comment.