aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgeireann <geireann.lindfield@gmail.com>2023-07-18 09:36:23 -0400
committergeireann <geireann.lindfield@gmail.com>2023-07-18 09:36:23 -0400
commit1e2277597fc890f929b3155868a400ba991bcfe0 (patch)
tree299bef0d32e21a45fc8e1178b50d4b5eed1fdec6
parentf623d0cbf78ef9cb14c9bbaf25c481262d9def84 (diff)
fixed shared dashboards field location
-rw-r--r--src/client/util/CurrentUserUtils.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/util/CurrentUserUtils.ts b/src/client/util/CurrentUserUtils.ts
index 284ceb545..ef1726fab 100644
--- a/src/client/util/CurrentUserUtils.ts
+++ b/src/client/util/CurrentUserUtils.ts
@@ -803,7 +803,7 @@ export class CurrentUserUtils {
};
DocUtils.AssignDocField(doc, "mySharedDocs", opts => Docs.Create.TreeDocument([], opts, sharingDocumentId + "layout", sharingDocumentId), sharedDocOpts, undefined, sharedScripts);
- if (!DocCast(doc.mySharedDocs).data_dashboards) DocCast(doc.mySharedDocs).data_dashboards = new List<Doc>();
+ if (!Doc.GetProto(DocCast(doc.mySharedDocs)).data_dashboards) Doc.GetProto(DocCast(doc.mySharedDocs)).data_dashboards = new List<Doc>();
console.log(doc.mySharedDocs);
}