Update edit-project-dialog.component.ts

This commit is contained in:
piotrpekala7 2020-01-16 13:08:13 +01:00
parent 0adaa88e6d
commit fd2599f4a1

View File

@ -49,7 +49,9 @@ export class EditProjectDialogComponent implements OnInit {
this.formGroup.controls['height'].setValue(this.project.scene_height);
this.formGroup.controls['nodeGridSize'].setValue(this.project.grid_size);
this.formGroup.controls['drawingGridSize'].setValue(this.project.drawing_grid_size);
this.project.variables.forEach(n => this.variables.push(n));
if (this.project.variables) {
this.project.variables.forEach(n => this.variables.push(n));
}
}
addVariable() {