Fix annotation color in annotator

This commit is contained in:
Ruben van de Ven 2022-06-10 13:45:01 +02:00
parent 95405ddd31
commit eeacb623c2
1 changed files with 1 additions and 1 deletions

View File

@ -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')) {