Fix annotation color in annotator
This commit is contained in:
parent
95405ddd31
commit
eeacb623c2
1 changed files with 1 additions and 1 deletions
|
@ -307,7 +307,7 @@ class Annotator extends EventTarget {
|
|||
getColorForTag(tag_id) {
|
||||
const tag = this.tagMap[tag_id];
|
||||
// console.log(tag_id, tag);
|
||||
if (tag && tag.hasOwnProperty('color')) {
|
||||
if (tag && tag.hasOwnProperty('color') && tag.color) {
|
||||
return tag.color;
|
||||
}
|
||||
if (tag && tag.hasOwnProperty('parent')) {
|
||||
|
|
Loading…
Reference in a new issue