diff options
author | bobzel <zzzman@gmail.com> | 2020-10-01 20:49:31 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-10-01 20:49:31 -0400 |
commit | ae10a9c7e6188236023f790c1ff6abb0e211311e (patch) | |
tree | eb0c7ff26d0349fd183f205116fdf9316e6e3248 /src | |
parent | 266590937d3fda5dd96729edaa7c9bfac42370d9 (diff) |
from last
Diffstat (limited to 'src')
-rw-r--r-- | src/client/util/CurrentUserUtils.ts | 2 | ||||
-rw-r--r-- | src/fields/Doc.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/client/util/CurrentUserUtils.ts b/src/client/util/CurrentUserUtils.ts index c00ad2334..add595cd1 100644 --- a/src/client/util/CurrentUserUtils.ts +++ b/src/client/util/CurrentUserUtils.ts @@ -1023,7 +1023,7 @@ export class CurrentUserUtils { const { userDocumentId, sharingDocumentId } = JSON.parse(ids) as any; if (userDocumentId !== "guest") { return DocServer.GetRefField(userDocumentId).then(async field => - Doc.SetUserDoc(await this.updateUserDocument(field instanceof Doc ? field : new Doc(userDocumentId, true), sharingDocumentId))); + await this.updateUserDocument(Doc.SetUserDoc(field instanceof Doc ? field : new Doc(userDocumentId, true)), sharingDocumentId)); } else { throw new Error("There should be a user id! Why does Dash think there isn't one?"); } diff --git a/src/fields/Doc.ts b/src/fields/Doc.ts index d9c641973..a8a5ba9bd 100644 --- a/src/fields/Doc.ts +++ b/src/fields/Doc.ts @@ -888,7 +888,7 @@ export namespace Doc { export function SetSelectedTool(tool: InkTool) { Doc.UserDoc().activeInkTool = tool; } export function GetSelectedTool(): InkTool { return StrCast(Doc.UserDoc().activeInkTool, InkTool.None) as InkTool; } - export function SetUserDoc(doc: Doc) { manager._user_doc = doc; } + export function SetUserDoc(doc: Doc) { return (manager._user_doc = doc); } export function IsSearchMatch(doc: Doc) { return computedFn(function IsSearchMatch(doc: Doc) { |