Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
ngOnInit() {
this.formGroup.addControl("dockerGroup", this.formBuilder.group({}));
this.formGroup.addControl("baseCommandGroup", this.formBuilder.group({}));
this.formGroup.addControl("inputs", this.formBuilder.group({}));
console.log("Model", this.model);
if (this.model.hints) {
this.resources["sbg:CPURequirement"] = this.model.hints["sbg:CPURequirement"] || new ResourceRequirementModel({class: "sbg:CPURequirement", value: ""}, "");
this.resources["sbg:MemRequirement"] = this.model.hints["sbg:MemRequirement"] || new ResourceRequirementModel({class: "sbg:MemRequirement", value: ""}, "");
}
}
ngOnInit() {
this.formGroup.addControl("dockerGroup", this.formBuilder.group({}));
this.formGroup.addControl("baseCommandGroup", this.formBuilder.group({}));
this.formGroup.addControl("inputs", this.formBuilder.group({}));
console.log("Model", this.model);
if (this.model.hints) {
this.resources["sbg:CPURequirement"] = this.model.hints["sbg:CPURequirement"] || new ResourceRequirementModel({class: "sbg:CPURequirement", value: ""}, "");
this.resources["sbg:MemRequirement"] = this.model.hints["sbg:MemRequirement"] || new ResourceRequirementModel({class: "sbg:MemRequirement", value: ""}, "");
}
}