Skip to content

Commit bcff0a8

Browse files
committed
Non-DNA glyph should take precedence even when there is a role
1 parent 0a02483 commit bcff0a8

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

lib/getDisplayList.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ var URI = require('sboljs').URI
88
var sha1 = require('sha1');
99

1010
function getDisplayList(componentDefinition, config, share, max) {
11-
console.log("componentDefinition", componentDefinition);
11+
1212
var segments = [
1313
getDisplayListSegment(componentDefinition, config, share)
1414
]
@@ -160,14 +160,15 @@ function getDisplayListSegment(componentDefinition, config, share) {
160160

161161
var glyphType = soToGlyphType(soCode)
162162

163+
if (!nonDNAType) {
164+
if (glyphType) {
165+
glyph = glyphType;
166+
}
163167

164-
if (glyphType) {
165-
glyph = glyphType;
166-
}
167-
168-
else {
169-
glyph = 'no-glyph-assigned';
170-
}
168+
else {
169+
glyph = 'no-glyph-assigned';
170+
}
171+
}
171172
})
172173

173174
return {

0 commit comments

Comments
 (0)