aboutsummaryrefslogtreecommitdiff
path: root/src/client/documents/DocUtils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/documents/DocUtils.ts')
-rw-r--r--src/client/documents/DocUtils.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/client/documents/DocUtils.ts b/src/client/documents/DocUtils.ts
index 7e0416447..9797a407b 100644
--- a/src/client/documents/DocUtils.ts
+++ b/src/client/documents/DocUtils.ts
@@ -385,7 +385,7 @@ export namespace DocUtils {
newDoc.x = x;
newDoc.y = y;
newDoc[DocData].backgroundColor = Doc.UserDoc().textBackgroundColor;
- Doc.SetSelectOnLoad(newDoc);
+ DocumentView.SetSelectOnLoad(newDoc);
if (pivotField) {
newDoc[pivotField] = pivotValue;
}
@@ -408,6 +408,7 @@ export namespace DocUtils {
description: ':Daily Journal',
event: undoable(() => {
const newDoc = Docs.Create.DailyJournalDocument('', { x, y });
+ DocumentView.SetSelectOnLoad(newDoc);
docAdder?.(newDoc);
}, 'Create Daily Journal'),
icon: 'book',
@@ -456,7 +457,7 @@ export namespace DocUtils {
newDoc.author = ClientUtils.CurrentUserEmail();
newDoc.x = x;
newDoc.y = y;
- Doc.SetSelectOnLoad(newDoc);
+ DocumentView.SetSelectOnLoad(newDoc);
if (pivotField) {
newDoc[pivotField] = pivotValue;
}