aboutsummaryrefslogtreecommitdiff
path: root/src/client/documents/Documents.ts
diff options
context:
space:
mode:
authorMelissa Zhang <mzhang19096@gmail.com>2020-08-17 14:55:53 -0700
committerMelissa Zhang <mzhang19096@gmail.com>2020-08-17 14:55:53 -0700
commitbd827b97c719abeadf243ba4f8b2ba417badb65b (patch)
treea573c994c831f23978e32476724012a60b4020bc /src/client/documents/Documents.ts
parent681460e3ef16cd6031447108d62a4d160eb3266f (diff)
parent39e49bbb6943a546123765f8969ea4f054157ae5 (diff)
merge with master
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r--src/client/documents/Documents.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts
index d612f7b5c..3316e6b48 100644
--- a/src/client/documents/Documents.ts
+++ b/src/client/documents/Documents.ts
@@ -577,7 +577,7 @@ export namespace Docs {
// without this, if a doc has no annotations but the user has AddOnly privileges, they won't be able to add an annotation because they would have needed to create the field's list which they don't have permissions to do.
dataDoc[fieldKey + "-annotations"] = new List<Doc>();
- dataDoc.aliases = new List<Doc>();
+ dataDoc.aliases = new List<Doc>([viewDoc]);
proto.links = ComputedField.MakeFunction("links(self)");