diff options
| author | bob <bcz@cs.brown.edu> | 2019-08-09 12:10:36 -0400 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-08-09 12:10:36 -0400 |
| commit | 915b9332ad72f56b68df148b09eecba527dc9f06 (patch) | |
| tree | 7d5fd1c8afcad3a2d9a2be8cd88c5dd72a21dc86 /src/client/views/collections | |
| parent | 7aa0d076800c61b7545e2aa12f714eb7ea046eae (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.tsx | 8 |
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>)} </> ); } |
