aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-08-09 12:10:36 -0400
committerbob <bcz@cs.brown.edu>2019-08-09 12:10:36 -0400
commit915b9332ad72f56b68df148b09eecba527dc9f06 (patch)
tree7d5fd1c8afcad3a2d9a2be8cd88c5dd72a21dc86 /src/client/views/collections
parent7aa0d076800c61b7545e2aa12f714eb7ea046eae (diff)
changed how templates get dataDocs. changed button boxes to be div's
Diffstat (limited to 'src/client/views/collections')
-rw-r--r--src/client/views/collections/ParentDocumentSelector.tsx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/views/collections/ParentDocumentSelector.tsx b/src/client/views/collections/ParentDocumentSelector.tsx
index c3e55d825..17111af58 100644
--- a/src/client/views/collections/ParentDocumentSelector.tsx
+++ b/src/client/views/collections/ParentDocumentSelector.tsx
@@ -50,10 +50,10 @@ export class SelectorContextMenu extends React.Component<SelectorProps> {
render() {
return (
<>
- <p>Contexts:</p>
- {this._docs.map(doc => <p><a onClick={this.getOnClick(doc)}>{doc.col.title}</a></p>)}
- {this._otherDocs.length ? <hr></hr> : null}
- {this._otherDocs.map(doc => <p><a onClick={this.getOnClick(doc)}>{doc.col.title}</a></p>)}
+ <p key="contexts">Contexts:</p>
+ {this._docs.map(doc => <p key={doc.col[Id] + doc.target[Id]}><a onClick={this.getOnClick(doc)}>{doc.col.title}</a></p>)}
+ {this._otherDocs.length ? <hr key="hr" /> : null}
+ {this._otherDocs.map(doc => <p key="p"><a onClick={this.getOnClick(doc)}>{doc.col.title}</a></p>)}
</>
);
}