diff options
author | bobzel <zzzman@gmail.com> | 2023-04-13 22:22:07 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-04-13 22:22:07 -0400 |
commit | 5cd64622f14ede408d3baca4a10d155b60392e46 (patch) | |
tree | 53a576d45388cf73767f0f102bb29dd96e899717 /src/client/views/nodes/formattedText/DashFieldView.tsx | |
parent | 5d1e3710a015d8915bd367ece753817d84d9d916 (diff) |
lots of changes to get rid of ContainingCollectionDoc and ContainingCollectionView props.
Diffstat (limited to 'src/client/views/nodes/formattedText/DashFieldView.tsx')
-rw-r--r-- | src/client/views/nodes/formattedText/DashFieldView.tsx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/client/views/nodes/formattedText/DashFieldView.tsx b/src/client/views/nodes/formattedText/DashFieldView.tsx index f23426bb3..c43206629 100644 --- a/src/client/views/nodes/formattedText/DashFieldView.tsx +++ b/src/client/views/nodes/formattedText/DashFieldView.tsx @@ -235,10 +235,7 @@ export class DashFieldViewInternal extends React.Component<IDashFieldViewInterna }; createPivotForField = (e: React.MouseEvent) => { - let container = this.props.tbox.props.ContainingCollectionView; - while (container?.props.Document.isTemplateForField || container?.props.Document.isTemplateDoc) { - container = container.props.ContainingCollectionView; - } + let container = this.props.tbox.props.DocumentView?.().props.docViewPath().lastElement(); if (container) { const alias = Doc.MakeAlias(container.props.Document); alias._viewType = CollectionViewType.Time; |