Fix annotation color in annotator
This commit is contained in:
parent
eeacb623c2
commit
f8945549b0
1 changed files with 1 additions and 1 deletions
|
@ -310,7 +310,7 @@ class Annotator extends EventTarget {
|
|||
if (tag && tag.hasOwnProperty('color') && tag.color) {
|
||||
return tag.color;
|
||||
}
|
||||
if (tag && tag.hasOwnProperty('parent')) {
|
||||
if (tag && tag.hasOwnProperty('parent') && tag.parent) {
|
||||
return this.getColorForTag(tag['parent'].id);
|
||||
}
|
||||
return 'black';
|
||||
|
|
Loading…
Reference in a new issue