mirror of
https://codeberg.org/emersion/gamja
synced 2025-03-12 15:33:47 +01:00
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) {
|
||||
children.push(createFoldGroup(foldMessages));
|
||||
children.push(sep);
|
||||
children.push(...sep);
|
||||
foldMessages = [];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user