diff options
| author | bobzel <zzzman@gmail.com> | 2020-08-12 08:26:41 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-08-12 08:26:41 -0400 |
| commit | 08d367f51eb73cf947f07f74c1889605170424f8 (patch) | |
| tree | d77f7b958c8a15f884b2edf122a6ea1851b07108 /src/client/views/collections/CollectionSubView.tsx | |
| parent | 1e0a4e1df6127a94c5a0c3cb717699b722603985 (diff) | |
| parent | 8fd9d9348de59caccfac9e98102fea431ac46999 (diff) | |
Merge branch 'master' into schema_search
Diffstat (limited to 'src/client/views/collections/CollectionSubView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionSubView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionSubView.tsx b/src/client/views/collections/CollectionSubView.tsx index a4493897c..a43685a5e 100644 --- a/src/client/views/collections/CollectionSubView.tsx +++ b/src/client/views/collections/CollectionSubView.tsx @@ -470,7 +470,7 @@ export function CollectionSubView<T, X>(schemaCtor: (doc: Doc) => T, moreProps?: completed?.(); } else { if (text && !text.includes("https://")) { - this.addDocument(Docs.Create.TextDocument(text, { ...options, _width: 400, _height: 315 })); + UndoManager.RunInBatch(() => this.addDocument(Docs.Create.TextDocument(text, { ...options, title: text.substring(0, 20), _width: 400, _height: 315 })), "drop"); } } disposer(); |
