diff options
author | bob <bcz@cs.brown.edu> | 2019-06-24 13:43:32 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-06-24 13:43:32 -0400 |
commit | a5955ff8e8da67c9617f724f8df258b88d63b49e (patch) | |
tree | 127dd645c8a45eae2e020954e96effd595bd25d3 /src/client/views/DocumentDecorations.tsx | |
parent | 6df09d7d646c16e6469b198e7d270b6a1e45b0c7 (diff) |
fixed pdfs for templates.
Diffstat (limited to 'src/client/views/DocumentDecorations.tsx')
-rw-r--r-- | src/client/views/DocumentDecorations.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx index 9be5c9cd6..2667b7632 100644 --- a/src/client/views/DocumentDecorations.tsx +++ b/src/client/views/DocumentDecorations.tsx @@ -77,7 +77,7 @@ export class DocumentDecorations extends React.Component<{}, { value: string }> this._fieldKey = text.slice(1, text.length); this._title = this.selectionTitle; } else if (text.startsWith(">")) { - let metaKey = text.slice(text.startsWith(">>>") ? 3 : text.startsWith(">>") ? 2 : 1, text.length); + let metaKey = text.slice(1, text.length - 1); let field = SelectionManager.SelectedDocuments()[0]; let collectionKey = field.props.ContainingCollectionView!.props.fieldKey; let collection = field.props.ContainingCollectionView!.props.Document; |