diff options
| author | bobzel <zzzman@gmail.com> | 2023-11-30 21:01:57 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2023-11-30 21:01:57 -0500 |
| commit | 50e770e42bd036d092f3c774921be87045dcd1ef (patch) | |
| tree | 4854c072d2aa4ea09e64737468c934766046f3bd /src/client/views/PropertiesDocContextSelector.tsx | |
| parent | c94bbf5b9f1a37630208d4ba64a93c5399044042 (diff) | |
final rootDoc refactoring
Diffstat (limited to 'src/client/views/PropertiesDocContextSelector.tsx')
| -rw-r--r-- | src/client/views/PropertiesDocContextSelector.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/PropertiesDocContextSelector.tsx b/src/client/views/PropertiesDocContextSelector.tsx index d157e7b1c..196250167 100644 --- a/src/client/views/PropertiesDocContextSelector.tsx +++ b/src/client/views/PropertiesDocContextSelector.tsx @@ -21,7 +21,7 @@ export class PropertiesDocContextSelector extends React.Component<PropertiesDocC @computed get _docs() { if (!this.props.DocView) return []; const target = this.props.DocView.props.Document; - const targetContext = this.props.DocView.props.docViewPath().lastElement()?.rootDoc; + const targetContext = this.props.DocView.props.docViewPath().lastElement()?.Document; const embeddings = DocListCast(target.proto_embeddings); const containerProtos = embeddings.filter(embedding => embedding.embedContainer && embedding.embedContainer instanceof Doc).reduce((set, embedding) => set.add(Cast(embedding.embedContainer, Doc, null)), new Set<Doc>()); const containerSets = Array.from(containerProtos.keys()).map(container => DocListCast(container.proto_embeddings)); |
