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.)
This commit is contained in:
Simon Ser 2025-02-24 00:29:11 +01:00
parent 7d068fd1fe
commit 76b6931ebb

View File

@ -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 = [];
}