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:
@@ -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 = [];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user