diff options
| author | bobzel <zzzman@gmail.com> | 2023-12-05 14:13:02 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2023-12-05 14:13:02 -0500 |
| commit | 3f412f469925f444714fd20a9bd76f4c36029d34 (patch) | |
| tree | 4c0259357586cf88e56d5d3c20177aa6ed4b71db /src/client/views/PropertiesDocContextSelector.tsx | |
| parent | 304f7e25fb2a533876a59bca7215126d02d94dbf (diff) | |
| parent | 23f789ab0bc9947f1bd23816183df2b5cc89b0e6 (diff) | |
merged with master
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)); |
