From e6abad5510bffc75df77985579a208440100e693 Mon Sep 17 00:00:00 2001 From: ilia Date: Wed, 2 Nov 2022 18:35:23 +0300 Subject: [PATCH] remove bug --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index e0991f0..158ed63 100644 --- a/index.js +++ b/index.js @@ -263,7 +263,7 @@ function postCircles() { function postRois() { roisAttrs = [] - roisAttrs = roisAttrsconcat(app.getActiveLayerGroup().getActiveDrawLayer().getKonvaLayer().find('.roi-group').map((e) => { + roisAttrs = roisAttrs.concat(app.getActiveLayerGroup().getActiveDrawLayer().getKonvaLayer().find('.roi-group').map((e) => { return e.children.filter((e) => e.attrs.name == 'shape').map(e => {return {attrs: e.attrs, parent: e.parent.attrs}}) })) return roisAttrs.flat().map((e) => {