aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/presentationview/PresentationList.tsx
diff options
context:
space:
mode:
authorMohammad Amoush <mohammad_amoush@brown.edu>2019-07-05 18:52:31 -0400
committerMohammad Amoush <mohammad_amoush@brown.edu>2019-07-05 18:52:31 -0400
commitedf530d1524cc1896ceeb0289f946ee31b16a938 (patch)
tree3b55d2da59cc716d256cef5c789ae4ad0bfe1e80 /src/client/views/presentationview/PresentationList.tsx
parent38a5856acd992657f735728aef91d459526364db (diff)
Some factorization and group building in drop fixed
Diffstat (limited to 'src/client/views/presentationview/PresentationList.tsx')
-rw-r--r--src/client/views/presentationview/PresentationList.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/presentationview/PresentationList.tsx b/src/client/views/presentationview/PresentationList.tsx
index 760cc80f4..35af451dd 100644
--- a/src/client/views/presentationview/PresentationList.tsx
+++ b/src/client/views/presentationview/PresentationList.tsx
@@ -19,7 +19,7 @@ interface PresListProps {
deleteDocument(index: number): void;
gotoDocument(index: number, fromDoc: number): Promise<void>;
groupMappings: Map<String, Doc[]>;
- presElementsMappings: Map<Doc, PresentationElement>;
+ setPresElementsMappings: (keyDoc: Doc, elem: PresentationElement) => void;
setChildrenDocs: (docList: Doc[]) => void;
presStatus: boolean;
presButtonBackUp: Doc;
@@ -88,7 +88,7 @@ export default class PresentationViewList extends React.Component<PresListProps>
<div className="presentationView-listCont" >
{children.map((doc: Doc, index: number) =>
<PresentationElement
- ref={(e) => { if (e) { this.props.presElementsMappings.set(doc, e); } }}
+ ref={(e) => { if (e) { this.props.setPresElementsMappings(doc, e); } }}
key={doc[Id]}
mainDocument={this.props.mainDocument}
document={doc}