diff --git a/app/www/annotate.js b/app/www/annotate.js index ec02bad..743e388 100644 --- a/app/www/annotate.js +++ b/app/www/annotate.js @@ -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')) {