aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/DocumentDecorations.tsx
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-09-13 11:43:03 -0400
committerbob <bcz@cs.brown.edu>2019-09-13 11:43:03 -0400
commit3665945fd4ef1b1dfc300f9188fd358df76e38b3 (patch)
tree0cd0c66b7b13b61e4b85e65061f871a08ffe4ed9 /src/client/views/DocumentDecorations.tsx
parent106d7ca39e36fc114f79fd5fef27998a68fd3d5b (diff)
preserved data from field being converted to metadata template field
Diffstat (limited to 'src/client/views/DocumentDecorations.tsx')
-rw-r--r--src/client/views/DocumentDecorations.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx
index 589d69264..6d63e8f73 100644
--- a/src/client/views/DocumentDecorations.tsx
+++ b/src/client/views/DocumentDecorations.tsx
@@ -160,7 +160,8 @@ export class DocumentDecorations extends React.Component<{}, { value: string }>
const fd = fieldTemplate.data;
fd instanceof ObjectField && (Doc.GetProto(containerView.props.DataDoc)[metaKey] = ObjectField.MakeCopy(fd));
}
- Doc.MakeTemplate(fieldTemplate, metaKey, proto);
+ fieldTemplate.title = metaKey;
+ Doc.MakeMetadataFieldTemplate(fieldTemplate, proto);
if (text.startsWith(">>")) {
proto.detailedLayout = proto.layout;
proto.miniLayout = ImageBox.LayoutString(metaKey);