aboutsummaryrefslogtreecommitdiff
path: root/src/client/documents/Documents.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-03-20 00:50:26 -0400
committerbobzel <zzzman@gmail.com>2021-03-20 00:50:26 -0400
commit05e562534763d1c15218ef82b6cb8e8d9bba35b1 (patch)
treed60921b34179dd6bd56414bcc4036d6c675d28a5 /src/client/documents/Documents.ts
parent54c8424a1e8999a2f3a82e3463671ddf2a3c84f6 (diff)
cleaned up warnings. fixed webBox annotations to write to correct key so that they appear on startup.
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 366275b6e..e7252c015 100644
--- a/src/client/documents/Documents.ts
+++ b/src/client/documents/Documents.ts
@@ -661,7 +661,7 @@ export namespace Docs {
// so that the list of annotations is already initialised, prevents issues in addonly.
// 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.
dataProps[fieldKey + "-annotations"] = new List<Doc>();
- const dataDoc = Doc.assign(Doc.MakeDelegate(proto, protoId), dataProps as any, undefined, true);
+ const dataDoc = Doc.assign(Doc.MakeDelegate(proto, protoId), dataProps, undefined, true);
viewProps.author = Doc.CurrentUserEmail;
viewProps["acl-Override"] = "None";