diff options
author | usodhi <61431818+usodhi@users.noreply.github.com> | 2021-06-19 19:41:12 -0400 |
---|---|---|
committer | usodhi <61431818+usodhi@users.noreply.github.com> | 2021-06-19 19:41:12 -0400 |
commit | 0c6269f2eda7a090ebd7d10298d55b7bc832297b (patch) | |
tree | 534959febb6559af80d643604096e5dbf81d0e7b /src/fields/util.ts | |
parent | fe672afad987b246b8be79366d2d9c45b6fba502 (diff) |
trying to solve sidebar issues
Diffstat (limited to 'src/fields/util.ts')
-rw-r--r-- | src/fields/util.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fields/util.ts b/src/fields/util.ts index f0cc20d74..526e5af72 100644 --- a/src/fields/util.ts +++ b/src/fields/util.ts @@ -249,8 +249,8 @@ export function distributeAcls(key: string, acl: SharingPermissions, target: Doc layoutDocChanged = true; if (isDashboard) { - DocListCast(target[Doc.LayoutFieldKey(target)]).forEach(d => { - distributeAcls(key, acl, d, inheritingFromCollection, visited); + DocListCastAsync(target[Doc.LayoutFieldKey(target)]).then(docs => { + docs?.forEach(d => distributeAcls(key, acl, d, inheritingFromCollection, visited)); }); } } |