aboutsummaryrefslogtreecommitdiff
path: root/src/client/documents
diff options
context:
space:
mode:
authorJenny Yu <jennyyu212@outlook.com>2022-06-13 21:31:41 -0700
committerJenny Yu <jennyyu212@outlook.com>2022-06-13 21:31:41 -0700
commit263f1c04f7177bad20800f7ae13e04fbd5a20b30 (patch)
tree748b6b5e73189fdc4bb70c1ccf851957303322bf /src/client/documents
parent11f646eeac9d4572d7b69e59a8e2688cc3c23861 (diff)
parent30f7330c82810d03373fbe63fd10796a090dece9 (diff)
Merge branch 'mainview-jenny' of https://github.com/brown-dash/Dash-Web into mainview-jenny
Diffstat (limited to 'src/client/documents')
-rw-r--r--src/client/documents/Documents.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts
index 0bb6ce27f..b290b2d58 100644
--- a/src/client/documents/Documents.ts
+++ b/src/client/documents/Documents.ts
@@ -663,6 +663,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>();
+ dataProps[fieldKey + "-sidebar"] = new List<Doc>();
const dataDoc = Doc.assign(Doc.MakeDelegate(proto, protoId), dataProps, undefined, true);
const viewFirstProps: { [id: string]: any } = {};