diff options
author | madelinegr <mgriswold99@gmail.com> | 2019-06-05 14:29:38 -0400 |
---|---|---|
committer | madelinegr <mgriswold99@gmail.com> | 2019-06-05 14:29:38 -0400 |
commit | efce6bf5ad2de96c8d4ee688ce0083608ecb541e (patch) | |
tree | 89debe310ee283648f2c858cd4fc0e9ea649b46a /src/client/views/presentationview/PresentationView.tsx | |
parent | 464096297d34bb824ed665aa50dfb58f268c1d12 (diff) |
Grouping done, insertion order should be checked
Diffstat (limited to 'src/client/views/presentationview/PresentationView.tsx')
-rw-r--r-- | src/client/views/presentationview/PresentationView.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/views/presentationview/PresentationView.tsx b/src/client/views/presentationview/PresentationView.tsx index 5a7d38e28..9baf75ad3 100644 --- a/src/client/views/presentationview/PresentationView.tsx +++ b/src/client/views/presentationview/PresentationView.tsx @@ -52,9 +52,12 @@ class PresentationViewList extends React.Component<PresListProps> { // } @action initializeGroupArrays = (docList: Doc[]) => { + console.log("Starting len: ", this.props.groupedMembers.length); docList.forEach((doc: Doc, index: number) => { - if (this.props.groupedMembers.length < index + 1) { + if (this.props.groupedMembers.length < index + 2) { this.props.groupedMembers[index] = new Array(); + this.props.groupedMembers[index].push(docList[index]); + } }); } |