diff options
| author | bobzel <zzzman@gmail.com> | 2023-08-21 12:21:36 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2023-08-21 12:21:36 -0400 |
| commit | bb11b2e0106ebd802e9ea4adc21f2891774ee634 (patch) | |
| tree | 15bd807f2a6f29d070295f99c935df15c035bef6 /src/client/views/DocumentButtonBar.tsx | |
| parent | eb35837e5ffe8e7eba9decea1fae5c163528dc1e (diff) | |
| parent | f5ead5e05a7c93463a4887efc521de882a189cfc (diff) | |
Merge branch 'master' into UI_Update_Eric_Ma
Diffstat (limited to 'src/client/views/DocumentButtonBar.tsx')
| -rw-r--r-- | src/client/views/DocumentButtonBar.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/DocumentButtonBar.tsx b/src/client/views/DocumentButtonBar.tsx index 6f5e9f5c0..345135a1a 100644 --- a/src/client/views/DocumentButtonBar.tsx +++ b/src/client/views/DocumentButtonBar.tsx @@ -563,10 +563,10 @@ export class DocumentButtonBar extends React.Component<{ views: () => (DocumentV const rootDoc = rootView?.rootDoc; if (rootDoc) { const anchor = rootView.ComponentView?.getAnchor?.(false) ?? rootDoc; - const trail = DocCast(anchor.presTrail) ?? Doc.MakeCopy(DocCast(Doc.UserDoc().emptyTrail), true); - if (trail !== anchor.presTrail) { + const trail = DocCast(anchor.presentationTrail) ?? Doc.MakeCopy(DocCast(Doc.UserDoc().emptyTrail), true); + if (trail !== anchor.presentationTrail) { DocUtils.MakeLink(anchor, trail, { link_relationship: 'link trail' }); - anchor.presTrail = trail; + anchor.presentationTrail = trail; } Doc.ActivePresentation = trail; this.props.views().lastElement()?.props.addDocTab(trail, OpenWhere.replaceRight); |
