Skip to content

Commit

Permalink
Multiple Property addition bug resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
nunofreitas96 committed May 29, 2020
1 parent 73a8408 commit dcd2764
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/app/edit-template/edit-template.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ export class EditTemplateComponent implements OnInit {
changeTemplate() {
this.service.postTemplate(this.template)
.subscribe(result => {
this.form.data = result;
console.log(result);
this.load = true;
});
Expand All @@ -171,6 +170,8 @@ export class EditTemplateComponent implements OnInit {
addProp() {
this.load = false;
this.chosenprops.push(this.comboBoxReference.inputItem);
console.log( "this.form.data");
console.log( this.form.data);
this.form.data[this.uid][this.comboBoxReference.inputItem] = [];
this.form.data[this.uid][this.comboBoxReference.inputItem][0] = {name: '1', uid: '1' };
const schemaEntity = this.schemaname.replace('Schema', '');
Expand Down

0 comments on commit dcd2764

Please sign in to comment.