From efce6bf5ad2de96c8d4ee688ce0083608ecb541e Mon Sep 17 00:00:00 2001
From: madelinegr <mgriswold99@gmail.com>
Date: Wed, 5 Jun 2019 14:29:38 -0400
Subject: Grouping done, insertion order should be checked

---
 src/client/views/presentationview/PresentationView.tsx | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'src/client/views/presentationview/PresentationView.tsx')

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]);
+
             }
         });
     }
-- 
cgit v1.2.3-70-g09d2

