diff options
author | bobzel <zzzman@gmail.com> | 2020-08-14 22:22:37 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-08-14 22:22:37 -0400 |
commit | 5ab3b1b20e4d483a0b3113739a6cb7ef88a9b03c (patch) | |
tree | d59545a5150583208909ad638a1aa30f2afab4db /src/client/util/CurrentUserUtils.ts | |
parent | 4e3ed774c9ac3d1365c67125ddc97df9de245f41 (diff) |
fixed dragging aliases to remove _stayInColleciton flag. fixed warnings.
Diffstat (limited to 'src/client/util/CurrentUserUtils.ts')
-rw-r--r-- | src/client/util/CurrentUserUtils.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/util/CurrentUserUtils.ts b/src/client/util/CurrentUserUtils.ts index 8931495dc..2c3a7cb66 100644 --- a/src/client/util/CurrentUserUtils.ts +++ b/src/client/util/CurrentUserUtils.ts @@ -722,9 +722,9 @@ export class CurrentUserUtils { } } - static setupWorkspaces(doc: Doc) { + static async setupWorkspaces(doc: Doc) { // setup workspaces library item - doc.myWorkspaces === undefined; + await doc.myWorkspaces; if (doc.myWorkspaces === undefined) { doc.myWorkspaces = new PrefetchProxy(Docs.Create.TreeDocument([], { title: "WORKSPACES", _height: 100, forceActive: true, boxShadow: "0 0", lockedPosition: true, treeViewOpen: true, system: true @@ -743,6 +743,7 @@ export class CurrentUserUtils { lockedPosition: true, boxShadow: "0 0", dontRegisterChildViews: true, targetDropAction: "same", system: true })) as any as Doc; } + return doc.myWorkspaces as any as Doc; } static setupCatalog(doc: Doc) { |