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