From 76b6931ebbced8dbfcd71886d3bb1b6ab6015ab4 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 24 Feb 2025 00:29:11 +0100 Subject: [PATCH] components/buffer: flatten separators when appending to children Nested "key" attributes in arrays don't work. "key" attributes need to all be in the same array. (Alternatively, we could've used a fragment and set a key on that.) --- components/buffer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/buffer.js b/components/buffer.js index 9312acf..f3c5747 100644 --- a/components/buffer.js +++ b/components/buffer.js @@ -821,7 +821,7 @@ export default class Buffer extends Component { if (sep.length > 0) { children.push(createFoldGroup(foldMessages)); - children.push(sep); + children.push(...sep); foldMessages = []; }