diff options
author | Jenny Yu <jennyyu212@outlook.com> | 2022-09-13 22:47:11 -0400 |
---|---|---|
committer | Jenny Yu <jennyyu212@outlook.com> | 2022-09-13 22:47:11 -0400 |
commit | 9e24fb58f5cb7fca663c30e32b59dc70b80fa739 (patch) | |
tree | d155050be00bd9aebc6a3b25440ba9666e84e0cd /src/fields/Doc.ts | |
parent | e5a8cbbdf084f09863005af0edbf135a0ffa71ab (diff) | |
parent | 8ded118135a5e296a83a85cf3f2180be56c6a045 (diff) |
Merge branch 'sharing-jenny' of https://github.com/brown-dash/Dash-Web into sharing-jenny
Diffstat (limited to 'src/fields/Doc.ts')
-rw-r--r-- | src/fields/Doc.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fields/Doc.ts b/src/fields/Doc.ts index 86b4da792..cf505c45b 100644 --- a/src/fields/Doc.ts +++ b/src/fields/Doc.ts @@ -225,13 +225,13 @@ export class Doc extends RefField { public static get ActiveTool(): InkTool { return StrCast(Doc.UserDoc().activeTool, InkTool.None) as InkTool; } - public static get ActivePresentation() { + public static get ActivePresentation(): Opt<Doc> { return DocCast(Doc.ActiveDashboard?.activePresentation); } public static set ActivePresentation(val) { - if (Doc.ActiveDashboard) { + if (Doc.ActiveDashboard) { Doc.ActiveDashboard.activePresentation = val; - } + } } constructor(id?: FieldId, forceSave?: boolean) { super(id); |