diff options
| author | bobzel <zzzman@gmail.com> | 2023-02-22 23:39:55 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2023-02-22 23:39:55 -0500 |
| commit | b312f1df3a38d0019063b25e96edcdf5de080df4 (patch) | |
| tree | 6e6514ffa79a2675e6caea56cdd6084c323381b9 /src/client/views/collections/TabDocView.tsx | |
| parent | 36e777855ad314b2f46666c6f8fb9610ec848d64 (diff) | |
fixing highlighting presbox navigations. image anchor are now always added as annotations.
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 a33a50d03..8d3c8fe2f 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 = anchorDoc && anchorDoc !== doc ? anchorDoc : Doc.MakeDelegate(doc); + const pinDoc = anchorDoc && anchorDoc !== doc ? Doc.MakeDelegate(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 |
