Skip to content

Commit

Permalink
Fixes #226 - hovering over twin would show displayName and descriptio…
Browse files Browse the repository at this point in the history
…n of inherited model rather than base model
  • Loading branch information
ccrowley96 committed Oct 28, 2021
1 parent 109a3c7 commit d1c13bd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions client/src/services/ModelService.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,10 @@ export class ModelService {
if (!contents.displayName) {
contents.displayName = getModelDisplayName(vertex);
}
contents.description = getModelDescription(vertex);
contents.isDefined = vertex.hasAttributeValue("is_defined", true);
if (!isExtended) {
contents.description = getModelDescription(vertex);
contents.isDefined = vertex.hasAttributeValue("is_defined", true);
}

vertex
.getOutgoing("dtmi:dtdl:property:contents;2")
Expand Down

0 comments on commit d1c13bd

Please sign in to comment.