aboutsummaryrefslogtreecommitdiff
path: root/src/client/documents
diff options
context:
space:
mode:
authorusodhi <61431818+usodhi@users.noreply.github.com>2020-07-21 12:15:39 +0530
committerusodhi <61431818+usodhi@users.noreply.github.com>2020-07-21 12:15:39 +0530
commitfa68e59c31c9ad4b4458933a246440807529794b (patch)
tree668e8af1ab11e901757b885f9e5cdb68fae1c182 /src/client/documents
parent2d16c23cf8af25601b34e44b951ce108673831e4 (diff)
more addonly fixes
Diffstat (limited to 'src/client/documents')
-rw-r--r--src/client/documents/Documents.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts
index 8e7d125b0..c783a761a 100644
--- a/src/client/documents/Documents.ts
+++ b/src/client/documents/Documents.ts
@@ -549,6 +549,9 @@ export namespace Docs {
const dataDoc = MakeDataDelegate(proto, protoProps, data, fieldKey);
const viewDoc = Doc.MakeDelegate(dataDoc, delegId);
+ // so that the list of annotations is already initialised, prevents issues in addonly
+ dataDoc[fieldKey + "-annotations"] = new List<Doc>();
+
proto.links = ComputedField.MakeFunction("links(self)");
viewDoc.author = Doc.CurrentUserEmail;