Skip to content

Commit

Permalink
update seneca-message, handles child lists more efficiently
Browse files Browse the repository at this point in the history
  • Loading branch information
rjrodger committed Mar 11, 2020
1 parent 4a668a8 commit 11b8408
Show file tree
Hide file tree
Showing 6 changed files with 623 additions and 553 deletions.
7 changes: 4 additions & 3 deletions group.js
Original file line number Diff line number Diff line change
Expand Up @@ -404,9 +404,10 @@ function group(opts) {
// console.log('GROUP UL out', out)

// only keep groups that are members of owner_id
group_list.items = out
.filter(r => r.member)
.map(r => group_list.items.find(g => g.id === r.member.c))
group_list.items = out.members
//.filter(r => r.member)
//.map(r => group_list.items.find(g => g.id === r.member.c))
.map(member => group_list.items.find(g => g.id === member.c))
}

//console.log('GROUP LIST B',group_list.items)
Expand Down
Loading

0 comments on commit 11b8408

Please sign in to comment.