diff options
| author | madelinegr <mgriswold99@gmail.com> | 2019-06-06 16:08:18 -0400 |
|---|---|---|
| committer | madelinegr <mgriswold99@gmail.com> | 2019-06-06 16:08:18 -0400 |
| commit | a794da35a96ba278e20a76591de86cac6ce44969 (patch) | |
| tree | 839fac2a2091816ec8891532a07b699659f25cd5 /src/client/views/presentationview/PresentationView.tsx | |
| parent | 9cf1a4375700a0d473db1affcba5e9d28f22d124 (diff) | |
Grouping done
Diffstat (limited to 'src/client/views/presentationview/PresentationView.tsx')
| -rw-r--r-- | src/client/views/presentationview/PresentationView.tsx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/client/views/presentationview/PresentationView.tsx b/src/client/views/presentationview/PresentationView.tsx index 6cf908d01..79b7c1f15 100644 --- a/src/client/views/presentationview/PresentationView.tsx +++ b/src/client/views/presentationview/PresentationView.tsx @@ -62,6 +62,16 @@ class PresentationViewList extends React.Component<PresListProps> { }); } + @action + initializeGroupIds = (docList: Doc[]) => { + docList.forEach((doc: Doc, index: number) => { + let docGuid = StrCast(doc.presentId, null); + if (docGuid === undefined) { + doc.presentId = Utils.GenerateGuid(); + } + }); + } + // /** // * Renders a single child document. It will just append a list element. // * @param document The document to render. @@ -109,6 +119,7 @@ class PresentationViewList extends React.Component<PresListProps> { render() { const children = DocListCast(this.props.Document.data); this.initializeGroupArrays(children); + this.initializeGroupIds(children); return ( <div className="presentationView-listCont"> |
