diff options
author | bobzel <zzzman@gmail.com> | 2022-09-13 15:04:06 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-09-13 15:04:06 -0400 |
commit | b55fefa87179b9f15fb72d088f527771e90b9bb8 (patch) | |
tree | 4b6a69aa38c9bbc9755922106f7052283bc37000 /src/client/documents/Documents.ts | |
parent | ef501d60faa2d843b65d9a12a03e979eb59f1655 (diff) |
made things consistent by renaming emptyPresentation to emptyTrail and then always making copies of emptyTrail instead of calling the Docs.create constructor
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r-- | src/client/documents/Documents.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts index 75024d9c9..63080f8cf 100644 --- a/src/client/documents/Documents.ts +++ b/src/client/documents/Documents.ts @@ -1564,7 +1564,7 @@ export namespace DocUtils { const documentList: ContextMenuProps[] = DocListCast(DocListCast(Doc.MyTools?.data)[0]?.data) .filter(btnDoc => !btnDoc.hidden) .map(btnDoc => Cast(btnDoc?.dragFactory, Doc, null)) - .filter(doc => doc && doc !== Doc.UserDoc().emptyPresentation) + .filter(doc => doc && doc !== Doc.UserDoc().emptyTrail) .map((dragDoc, i) => ({ description: ':' + StrCast(dragDoc.title).replace('Untitled ', ''), event: undoBatch((args: { x: number; y: number }) => { |