diff options
| author | monoguitari <113245090+monoguitari@users.noreply.github.com> | 2023-02-22 17:48:10 -0500 |
|---|---|---|
| committer | monoguitari <113245090+monoguitari@users.noreply.github.com> | 2023-02-22 17:48:10 -0500 |
| commit | 3a1d41fdc7546c8edf3707ddc03ebe63cf5f91a9 (patch) | |
| tree | d79e3b45c3d564ba66b13879affc548f68290d85 /src/client/views/collections/TabDocView.tsx | |
| parent | f69406d8566fc0e66597e343ef9b7e9eb893556c (diff) | |
| parent | 88706e3fcd42829a5c53cfce96a98a4a227ba57f (diff) | |
Merge branch 'master' into menushortcuts-jesus
Diffstat (limited to 'src/client/views/collections/TabDocView.tsx')
| -rw-r--r-- | src/client/views/collections/TabDocView.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/TabDocView.tsx b/src/client/views/collections/TabDocView.tsx index d6bc0a4b2..fa648eb44 100644 --- a/src/client/views/collections/TabDocView.tsx +++ b/src/client/views/collections/TabDocView.tsx @@ -248,7 +248,7 @@ export class TabDocView extends React.Component<TabDocViewProps> { return; } const anchorDoc = DocumentManager.Instance.getDocumentView(doc)?.ComponentView?.getAnchor?.(false); - const pinDoc = Doc.MakeDelegate(anchorDoc ?? doc); + const pinDoc = anchorDoc && anchorDoc !== doc ? anchorDoc : Doc.MakeDelegate(doc); pinDoc.presentationTargetDoc = anchorDoc ?? doc; pinDoc.title = doc.title + ' - Slide'; pinDoc.data = new List<Doc>(); // the children of the alias' layout are the presentation slide children. the alias' data field might be children of a collection, PDF data, etc -- in any case we don't want the tree view to "see" this data |
