diff options
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); |