diff options
author | usodhi <61431818+usodhi@users.noreply.github.com> | 2020-11-25 14:27:19 +0530 |
---|---|---|
committer | usodhi <61431818+usodhi@users.noreply.github.com> | 2020-11-25 14:27:19 +0530 |
commit | 6f47115a3b1a33b57d4cbf8134780e5a478c0bd3 (patch) | |
tree | 0ecc20d34ebe6cc5db7727c70db48dea6bb1d72e /src/client/util/SharingManager.tsx | |
parent | 6899214857b28033e1499251dc4ec32c11649b12 (diff) | |
parent | 51ddd53c847992c1cdba9625a81fb4f380a3b95b (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into acls_uv
Diffstat (limited to 'src/client/util/SharingManager.tsx')
-rw-r--r-- | src/client/util/SharingManager.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/util/SharingManager.tsx b/src/client/util/SharingManager.tsx index b375c7feb..53a6b2587 100644 --- a/src/client/util/SharingManager.tsx +++ b/src/client/util/SharingManager.tsx @@ -143,6 +143,10 @@ export class SharingManager extends React.Component<{}> { const linkDatabase = await DocServer.GetRefField(user.linkDatabaseId); if (sharingDoc instanceof Doc && linkDatabase instanceof Doc) { await DocListCastAsync(linkDatabase.data); + (await DocListCastAsync(Cast(linkDatabase, Doc, null).data))?.forEach(async link => { // makes sure link anchors are loaded to avoid incremental updates to computedFns in LinkManager + const a1 = await Cast(link?.anchor1, Doc, null); + const a2 = await Cast(link?.anchor2, Doc, null); + }); sharingDocs.push({ user, sharingDoc, linkDatabase, userColor: StrCast(sharingDoc.color) }); } } |