Skip to content

Commit

Permalink
fix: subclone hover when subclones are integers, not strings
Browse files Browse the repository at this point in the history
  • Loading branch information
tuner committed Oct 4, 2024
1 parent 102b41d commit bcc72af
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/interactions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,11 @@ function isTentacle(elem: SVGElement) {

function getSubclones(dataset: DOMStringMap): Set<string> {
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]);
}
Expand Down

0 comments on commit bcc72af

Please sign in to comment.