Skip to content

Commit

Permalink
Restore version working
Browse files Browse the repository at this point in the history
  • Loading branch information
bosschaert committed Apr 5, 2024
1 parent 79184bf commit ec65f4f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions blocks/edit/da-versions/da-versions.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@ export default class DaVersions extends LitElement {
aggregatedTo: list[end - 1].timestamp,
aggregateID: `${start}-${end}`,
};
const authors = new Set();
const users = new Set();

for (let i = start; i < end; i += 1) {
list[i].authors.forEach((e) => authors.add(e));
list[i].users.forEach((e) => users.add(e));
list[i].parent = agg.aggregateID;
}
agg.authors = [...authors];
agg.users = [...users];

list.splice(start, 0, agg);
}
Expand Down

0 comments on commit ec65f4f

Please sign in to comment.