diff options
| author | bobzel <zzzman@gmail.com> | 2020-10-21 00:08:54 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2020-10-21 00:08:54 -0400 |
| commit | 989cfd3daebfd622a486493f7041f688ef0c84b6 (patch) | |
| tree | f853ee74268b6eb2d13f56734cecd8cd8a86ef05 /src/client/views/collections/TabDocView.tsx | |
| parent | 6cfd2a37494bf531c88e26ea89b5b776805d31a8 (diff) | |
fixed undo from breaking when you click on pinDoc in TabView doc buttons.
Diffstat (limited to 'src/client/views/collections/TabDocView.tsx')
| -rw-r--r-- | src/client/views/collections/TabDocView.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/TabDocView.tsx b/src/client/views/collections/TabDocView.tsx index 9e25bb607..338b1d590 100644 --- a/src/client/views/collections/TabDocView.tsx +++ b/src/client/views/collections/TabDocView.tsx @@ -124,7 +124,7 @@ export class TabDocView extends React.Component<TabDocViewProps> { **/ @undoBatch @action - public static PinDoc(doc: Doc, unpin = false, audioRange?: boolean) { + public static async PinDoc(doc: Doc, unpin = false, audioRange?: boolean) { if (unpin) console.log('TODO: Remove UNPIN from this location'); //add this new doc to props.Document const curPres = CurrentUserUtils.ActivePresentation; @@ -144,7 +144,7 @@ export class TabDocView extends React.Component<TabDocViewProps> { if (!curPresDocView) { CollectionDockingView.AddSplit(curPres, "right"); } - DocumentManager.Instance.jumpToDocument(doc, false, undefined); + await DocumentManager.Instance.jumpToDocument(doc, false, undefined); } } |
