From eeacb623c2ce71802c5f7a5eef902fb714efbaaf Mon Sep 17 00:00:00 2001 From: Ruben van de Ven Date: Fri, 10 Jun 2022 13:45:01 +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 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')) {