diff --git a/src/interactions.ts b/src/interactions.ts index 9e91f45..397a2b5 100644 --- a/src/interactions.ts +++ b/src/interactions.ts @@ -78,7 +78,11 @@ function isTentacle(elem: SVGElement) { function getSubclones(dataset: DOMStringMap): Set { if (dataset.descendantSubclones) { - return new Set(JSON.parse(dataset.descendantSubclones)); + return new Set( + JSON.parse(dataset.descendantSubclones).map( + (subclone: string | number) => `${subclone}` + ) + ); } else if (dataset.subclone != null) { return new Set([dataset.subclone]); }