aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/CurrentUserUtils.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-03-17 18:32:51 -0400
committerbobzel <zzzman@gmail.com>2021-03-17 18:32:51 -0400
commit6f4f0ffb9f4ab816cf6055c62afc6f79b8e4961f (patch)
treeb1f238076751b2b2e969373403e9be8da29ccd05 /src/client/util/CurrentUserUtils.ts
parent73dc79ddc41b56e2f36a5b2e442fe9c71648b118 (diff)
fix Doc.MakeClone to deal wth links correctly again. fixed dashboard snapshot to either alias top-level documents, or clone everything.
Diffstat (limited to 'src/client/util/CurrentUserUtils.ts')
-rw-r--r--src/client/util/CurrentUserUtils.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/util/CurrentUserUtils.ts b/src/client/util/CurrentUserUtils.ts
index 2a84171cb..e601d33f7 100644
--- a/src/client/util/CurrentUserUtils.ts
+++ b/src/client/util/CurrentUserUtils.ts
@@ -1156,8 +1156,8 @@ export class CurrentUserUtils {
input.click();
}
- public static snapshotDashboard = (userDoc: Doc) => {
- const copy = CollectionDockingView.Copy(CurrentUserUtils.ActiveDashboard);
+ public static async snapshotDashboard(userDoc: Doc) {
+ const copy = await CollectionDockingView.Copy(CurrentUserUtils.ActiveDashboard);
Doc.AddDocToList(Cast(userDoc.myDashboards, Doc, null), "data", copy);
CurrentUserUtils.openDashboard(userDoc, copy);
}