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

View file

@ -307,7 +307,7 @@ class Annotator extends EventTarget {
getColorForTag(tag_id) { getColorForTag(tag_id) {
const tag = this.tagMap[tag_id]; const tag = this.tagMap[tag_id];
// console.log(tag_id, tag); // console.log(tag_id, tag);
if (tag && tag.hasOwnProperty('color')) { if (tag && tag.hasOwnProperty('color') && tag.color) {
return tag.color; return tag.color;
} }
if (tag && tag.hasOwnProperty('parent')) { if (tag && tag.hasOwnProperty('parent')) {