forked from CringeStudios/gamja
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:
parent
7d068fd1fe
commit
76b6931ebb
@ -821,7 +821,7 @@ export default class Buffer extends Component {
|
|||||||
|
|
||||||
if (sep.length > 0) {
|
if (sep.length > 0) {
|
||||||
children.push(createFoldGroup(foldMessages));
|
children.push(createFoldGroup(foldMessages));
|
||||||
children.push(sep);
|
children.push(...sep);
|
||||||
foldMessages = [];
|
foldMessages = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user