aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/PropertiesDocContextSelector.tsx
diff options
context:
space:
mode:
authorsrichman333 <sarah_n_richman@brown.edu>2023-07-18 13:22:36 -0400
committersrichman333 <sarah_n_richman@brown.edu>2023-07-18 13:22:36 -0400
commit7311dc5e358e34b074391b398e51439b20391ecb (patch)
treef42285e7bdc5baa081f8ac920361fbb84a59ef92 /src/client/views/PropertiesDocContextSelector.tsx
parent51718316b592e86c0009b7a27e1e32ba74d2488b (diff)
parent5da0b8c1e12abe13d60361af4f6bbb8454b6814d (diff)
Merge branch 'master' into data-visualization-sarah
Diffstat (limited to 'src/client/views/PropertiesDocContextSelector.tsx')
-rw-r--r--src/client/views/PropertiesDocContextSelector.tsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/views/PropertiesDocContextSelector.tsx b/src/client/views/PropertiesDocContextSelector.tsx
index e1279c9a7..6a54f0002 100644
--- a/src/client/views/PropertiesDocContextSelector.tsx
+++ b/src/client/views/PropertiesDocContextSelector.tsx
@@ -19,6 +19,7 @@ type PropertiesDocContextSelectorProps = {
@observer
export class PropertiesDocContextSelector extends React.Component<PropertiesDocContextSelectorProps> {
+
@computed get _docs() {
if (!this.props.DocView) return [];
const target = this.props.DocView.props.Document;
@@ -39,6 +40,8 @@ export class PropertiesDocContextSelector extends React.Component<PropertiesDocC
}, new Set<Doc>())
.keys()
);
+ console.log("embeddings " + embeddings.length);
+
return doclayouts
.filter(doc => !Doc.AreProtosEqual(doc, CollectionDockingView.Instance?.props.Document))
.filter(doc => !Doc.IsSystem(doc))
@@ -53,6 +56,7 @@ export class PropertiesDocContextSelector extends React.Component<PropertiesDocC
};
render() {
+ if (this._docs.length < 1) return undefined
return (
<div>
{this.props.hideTitle ? null : <p key="contexts">Contexts:</p>}