diff options
author | Sophie Zhang <sophie_zhang@brown.edu> | 2023-07-18 13:33:14 -0400 |
---|---|---|
committer | Sophie Zhang <sophie_zhang@brown.edu> | 2023-07-18 13:33:14 -0400 |
commit | faf2a1db89918153c9a6bc06e73bb02f7769123d (patch) | |
tree | 3c301878c6941115dbc77c30fcc68c8d29cc0e45 /src/client/views/PropertiesDocContextSelector.tsx | |
parent | e332c268c013efbc7409bf0072b66e8bf646dfef (diff) | |
parent | 5da0b8c1e12abe13d60361af4f6bbb8454b6814d (diff) |
Merge branch 'master' into sophie-report-manager
Diffstat (limited to 'src/client/views/PropertiesDocContextSelector.tsx')
-rw-r--r-- | src/client/views/PropertiesDocContextSelector.tsx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/views/PropertiesDocContextSelector.tsx b/src/client/views/PropertiesDocContextSelector.tsx index 6cac7b0fe..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)) |