diff --git a/html-client/src/components/vbox.component.jsx b/html-client/src/components/vbox.component.jsx index 2c71de07..24ee68ba 100644 --- a/html-client/src/components/vbox.component.jsx +++ b/html-client/src/components/vbox.component.jsx @@ -32,12 +32,10 @@ function Vbox(args) { return sendVboxReclaim(i); } - if (combiner.indexOf(i) === -1) { - const insert = combiner.findIndex(j => j === null); - combiner[insert] = i; - return setCombiner(combiner); - } - return setCombiner([i, null, null]); + const insert = combiner.findIndex(j => j === null); + if (insert === -1) return setCombiner([i, null, null]); + combiner[insert] = i; + return setCombiner(combiner); } function combinerRmv(i) { @@ -66,15 +64,25 @@ function Vbox(args) { ); }); - const boundTds = range(0, 9).map(i => ( -