From 8ef6948b1b3788044d3d53ad4966297ab5256f09 Mon Sep 17 00:00:00 2001
From: Bob Zeleznik <zzzman@gmail.com>
Date: Wed, 19 Feb 2020 21:52:25 -0500
Subject: added titles to group type docs

---
 src/client/views/linking/LinkEditor.tsx | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'src/client/views/linking/LinkEditor.tsx')

diff --git a/src/client/views/linking/LinkEditor.tsx b/src/client/views/linking/LinkEditor.tsx
index e3bf6b5f8..6df52c126 100644
--- a/src/client/views/linking/LinkEditor.tsx
+++ b/src/client/views/linking/LinkEditor.tsx
@@ -215,6 +215,7 @@ export class LinkGroupEditor extends React.Component<LinkGroupEditorProps> {
     @action
     setGroupType = (groupType: string): void => {
         this.props.groupDoc.type = groupType;
+        this.props.groupDoc.title = groupType;
     }
 
     removeGroupFromLink = (groupType: string): void => {
@@ -246,6 +247,7 @@ export class LinkGroupEditor extends React.Component<LinkGroupEditorProps> {
         // create new group doc with new metadata doc
         const destGroupDoc = new Doc();
         destGroupDoc.type = groupType;
+        destGroupDoc.title = groupType;
         destGroupDoc.metadata = destMdDoc;
 
         if (destDoc) {
-- 
cgit v1.2.3-70-g09d2

