diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2020-02-19 21:52:25 -0500 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2020-02-19 21:52:25 -0500 |
commit | 8ef6948b1b3788044d3d53ad4966297ab5256f09 (patch) | |
tree | d89ceba6c5ae9ec6b943223ad94700eab392286b | |
parent | 918db102f808084a7e58832e4c196c0655fd6730 (diff) |
added titles to group type docs
-rw-r--r-- | src/client/views/linking/LinkEditor.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |