diff options
| author | Jenny Yu <jennyyu212@outlook.com> | 2022-06-13 21:31:41 -0700 |
|---|---|---|
| committer | Jenny Yu <jennyyu212@outlook.com> | 2022-06-13 21:31:41 -0700 |
| commit | 263f1c04f7177bad20800f7ae13e04fbd5a20b30 (patch) | |
| tree | 748b6b5e73189fdc4bb70c1ccf851957303322bf /src/client/views/DocComponent.tsx | |
| parent | 11f646eeac9d4572d7b69e59a8e2688cc3c23861 (diff) | |
| parent | 30f7330c82810d03373fbe63fd10796a090dece9 (diff) | |
Merge branch 'mainview-jenny' of https://github.com/brown-dash/Dash-Web into mainview-jenny
Diffstat (limited to 'src/client/views/DocComponent.tsx')
| -rw-r--r-- | src/client/views/DocComponent.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/DocComponent.tsx b/src/client/views/DocComponent.tsx index 80835447d..8486b3d62 100644 --- a/src/client/views/DocComponent.tsx +++ b/src/client/views/DocComponent.tsx @@ -183,7 +183,7 @@ export function ViewBoxAnnotatableComponent<P extends ViewBoxAnnotatableProps>() const targetDataDoc = this.props.Document[DataSym]; const docList = DocListCast(targetDataDoc[annotationKey ?? this.annotationKey]); const added = docs.filter(d => !docList.includes(d)); - const effectiveAcl = GetEffectiveAcl(this.dataDoc); + const effectiveAcl = GetEffectiveAcl(targetDataDoc); if (added.length) { if (effectiveAcl === AclPrivate || effectiveAcl === AclReadonly) { |
