From 2482d37bd95271198cd2d51ab4698d7dd25a0ce0 Mon Sep 17 00:00:00 2001 From: Rainer Simon Date: Sun, 27 Dec 2020 12:01:35 +0100 Subject: [PATCH] Minor fix --- src/selection/Selection.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/selection/Selection.js b/src/selection/Selection.js index 59a8216..aba36e6 100644 --- a/src/selection/Selection.js +++ b/src/selection/Selection.js @@ -51,7 +51,8 @@ export default class Selection { } get bodies() { - return this.underlying.body; + return (Array.isArray(this.underlying.body)) ? + this.underlying.body : [ this.underlying.body ]; } selector = type => {