aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/CurrentUserUtils.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2023-07-13 21:05:23 -0400
committerbobzel <zzzman@gmail.com>2023-07-13 21:05:23 -0400
commit6503f182a4534119a9ae27a9decf884db70775c3 (patch)
treeaf3e7798e82f4c3fdecccb51925daec534432791 /src/client/util/CurrentUserUtils.ts
parentf96fb8dc3e430f93b7a7f3a57fa3fb3d83c813c9 (diff)
from last - fixed one problem with group sharing, others exist (remove/adding meber from group after sharing has been done doesn't take effect until browser refresh)
Diffstat (limited to 'src/client/util/CurrentUserUtils.ts')
-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 7832b1c87..7d0b477e2 100644
--- a/src/client/util/CurrentUserUtils.ts
+++ b/src/client/util/CurrentUserUtils.ts
@@ -783,7 +783,6 @@ export class CurrentUserUtils {
const sharedDocOpts:DocumentOptions = {
title: "My Shared Docs",
userColor: "rgb(202, 202, 202)",
- data_dashboards: new List<Doc>(),
isFolder:true, undoIgnoreFields:new List<string>(['treeViewSortCriterion']),
// childContextMenuFilters: new List<ScriptField>([dashboardFilter!,]),
// childContextMenuScripts: new List<ScriptField>([addToDashboards!,]),
@@ -797,6 +796,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>();
}
/// Import option on the left side button panel