From f8945549b0054d807a4da0352e4ca18842213841 Mon Sep 17 00:00:00 2001 From: Ruben van de Ven Date: Fri, 10 Jun 2022 13:49:12 +0200 Subject: [PATCH] Fix annotation color in annotator --- app/www/annotate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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';