mirror of
https://codeberg.org/emersion/gamja.git
synced 2025-04-21 10:00:52 -04: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue