Skip to content

Commit

Permalink
Fix bug with parent showing ID instead of name
Browse files Browse the repository at this point in the history
  • Loading branch information
jdtech3 committed Jun 22, 2023
1 parent 296f712 commit c1db9de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/src/app/components/inspector/inspector.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,11 @@ export class InspectorComponent implements OnChanges {
}
else {
const data: Requirement = val.data;
const parent: go.Node | null = val.findTreeParentNode();

this.requirement = data.title;
this.created_by = data['created-by'];
this.parent = data.parent;
this.parent = parent ? parent.data.title : '';
this.last_edited = new Date(data['last-edited']);
this.qualifier = data.qualifier;
this.collection = data.collection.join(', ');
Expand Down

0 comments on commit c1db9de

Please sign in to comment.