Skip to content

Commit

Permalink
fix(bake): Fix JavaScript error on bake stage load (#5027)
Browse files Browse the repository at this point in the history
  • Loading branch information
ezimanyi committed Mar 20, 2018
1 parent 7123971 commit 64e2ac9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export class BakeStageChooseOSController implements IController {

public showRadioButtons = false;

public $onInit(): void {
this.showRadioButtons = this.baseOsOptions.length <= 2;
public $onChanges(): void {
this.showRadioButtons = this.baseOsOptions && this.baseOsOptions.length <= 2;
}

public getBaseOsDescription(baseOsOption: IBaseOsOption): String {
Expand Down

0 comments on commit 64e2ac9

Please sign in to comment.