diff options
| author | bob <bcz@cs.brown.edu> | 2019-05-02 16:19:07 -0400 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-05-02 16:19:07 -0400 |
| commit | a78282cdf7fbb99386484640e1fb89d4b9b0cbee (patch) | |
| tree | 9154148f03f996e5c6fb8c2e367df13736d8b0cc /src/client/views/collections/collectionFreeForm | |
| parent | a79bda7e5c7e77e398a33b8262f861155c5f1462 (diff) | |
fixed some things with trees and summaries.
Diffstat (limited to 'src/client/views/collections/collectionFreeForm')
| -rw-r--r-- | src/client/views/collections/collectionFreeForm/MarqueeView.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/views/collections/collectionFreeForm/MarqueeView.tsx b/src/client/views/collections/collectionFreeForm/MarqueeView.tsx index c58e7780c..82027a6f2 100644 --- a/src/client/views/collections/collectionFreeForm/MarqueeView.tsx +++ b/src/client/views/collections/collectionFreeForm/MarqueeView.tsx @@ -180,7 +180,9 @@ export class MarqueeView extends React.Component<MarqueeViewProps> // SelectionManager.DeselectAll(); if (e.key === "r") { let summary = Docs.TextDocument({ x: bounds.left, y: bounds.top, width: 300, height: 100, backgroundColor: "yellow", title: "-summary-" }); - summary.doc1 = newCollection.proto!; + summary.doc1 = selected[0]; + if (selected.length > 1) + summary.doc2 = selected[1]; summary.templates = new List<string>([Templates.Summary.Layout]); this.props.addLiveTextDocument(summary); e.preventDefault(); |
