diff options
| author | bob <bcz@cs.brown.edu> | 2019-09-11 16:28:14 -0400 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-09-11 16:28:14 -0400 |
| commit | 4722644d09a561e394bd72c92af5561a2020776e (patch) | |
| tree | 20f50e2d9ec23a2af6e75846b0d4e76b853bb766 /src/client/views/collections | |
| parent | d7d73856ed405cef01b4cf727ca56f4d9a31e894 (diff) | |
fixed collection iteration onClick script
Diffstat (limited to 'src/client/views/collections')
| -rw-r--r-- | src/client/views/collections/CollectionBaseView.tsx | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/client/views/collections/CollectionBaseView.tsx b/src/client/views/collections/CollectionBaseView.tsx index bd8d56851..5829f0626 100644 --- a/src/client/views/collections/CollectionBaseView.tsx +++ b/src/client/views/collections/CollectionBaseView.tsx @@ -104,9 +104,6 @@ export class CollectionBaseView extends React.Component<CollectionViewProps> { if (this.props.fieldExt) { // bcz: fieldExt !== undefined means this is an overlay layer Doc.GetProto(doc).annotationOn = this.props.Document; } - if (doc.type === DocumentType.BUTTON) { - doc.collectionContext = this.props.Document; // used by docList() function in Doc.ts so that buttons can iterate over the documents in their collection - } allowDuplicates = true; let targetDataDoc = this.props.fieldExt || this.props.Document.isTemplate ? this.extensionDoc : this.props.Document; let targetField = (this.props.fieldExt || this.props.Document.isTemplate) && this.props.fieldExt ? this.props.fieldExt : this.props.fieldKey; |
