aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/TreeView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2022-06-06 20:55:52 -0400
committerbobzel <zzzman@gmail.com>2022-06-06 20:55:52 -0400
commitc29b7151e390f8e5b2090a6e3cd858249703bea7 (patch)
tree4b31b526619eaa2c0771dac82fbe145d6d4eabfb /src/client/views/collections/TreeView.tsx
parent32d9fcec5f3714186ca86872d085063c11f6f13d (diff)
removed sort ui from pres box tree view. made expanding/closing text hierarchies simpler (not sure what it might break though).
Diffstat (limited to 'src/client/views/collections/TreeView.tsx')
-rw-r--r--src/client/views/collections/TreeView.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/TreeView.tsx b/src/client/views/collections/TreeView.tsx
index a85b2a0d4..befd2020c 100644
--- a/src/client/views/collections/TreeView.tsx
+++ b/src/client/views/collections/TreeView.tsx
@@ -471,7 +471,7 @@ export class TreeView extends React.Component<TreeViewProps> {
const docs = expandKey === "aliases" ? this.childAliases : expandKey === "links" ? this.childLinks : expandKey === "annotations" ? this.childAnnos : this.childDocs;
let downX = 0, downY = 0;
return <>
- {!docs?.length ? (null) : <div className={'treeView-sorting'} style={{ background: sortings[sorting]?.color }} >
+ {!docs?.length || this.props.AddToMap /* hack to identify pres box trees */ ? (null) : <div className={'treeView-sorting'} style={{ background: sortings[sorting]?.color }} >
{sortings[sorting]?.label}
</div>}
<ul key={expandKey + "more"} title="click to change sort order" className={this.doc.treeViewHideTitle ? "no-indent" : ""}