diff options
| author | bob <bcz@cs.brown.edu> | 2019-04-10 14:28:25 -0400 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-04-10 14:28:25 -0400 |
| commit | e0b3c759880639bf56f9b8b39ea2e38c5cbad8a6 (patch) | |
| tree | 5f88f565db34f65897e3cef1ba6d7388bdffa447 /src/client/views/collections/CollectionPDFView.tsx | |
| parent | 9ea0f409cfc2a6c11bb1cf6e00015eb97900507b (diff) | |
fixed extra rendering for collections.
Diffstat (limited to 'src/client/views/collections/CollectionPDFView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionPDFView.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionPDFView.tsx b/src/client/views/collections/CollectionPDFView.tsx index 97bac745c..6cbe59012 100644 --- a/src/client/views/collections/CollectionPDFView.tsx +++ b/src/client/views/collections/CollectionPDFView.tsx @@ -7,6 +7,7 @@ import React = require("react"); import { CollectionFreeFormView } from "./collectionFreeForm/CollectionFreeFormView"; import { FieldView, FieldViewProps } from "../nodes/FieldView"; import { CollectionRenderProps, CollectionBaseView, CollectionViewType } from "./CollectionBaseView"; +import { emptyFunction } from "../../../Utils"; @observer @@ -33,7 +34,7 @@ export class CollectionPDFView extends React.Component<FieldViewProps> { onContextMenu = (e: React.MouseEvent): void => { if (!e.isPropagationStopped() && this.props.Document.Id !== "mainDoc") { // need to test this because GoldenLayout causes a parallel hierarchy in the React DOM for its children and the main document view7 - ContextMenu.Instance.addItem({ description: "PDFOptions", event: () => { } }); + ContextMenu.Instance.addItem({ description: "PDFOptions", event: emptyFunction }); } } |
