From 9a16a36a3aad575e5eec9313aa0dde6bea7c4215 Mon Sep 17 00:00:00 2001 From: kurkle Date: Sun, 16 Jan 2022 20:16:13 +0200 Subject: [PATCH] CC --- src/annotation.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/annotation.js b/src/annotation.js index 68efde04e..8aed34fb3 100644 --- a/src/annotation.js +++ b/src/annotation.js @@ -274,10 +274,7 @@ function drawElements(ctx, elements, caller) { function drawSubElements(ctx, elements, caller) { for (const el of elements) { - if (!isArray(el.elements)) { - continue; - } - for (const subElem of el.elements) { + for (const subElem of el.elements || []) { if (subElem.options.drawTime === caller) { subElem.draw(ctx); }