aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2022-06-06 18:13:37 -0400
committerbobzel <zzzman@gmail.com>2022-06-06 18:13:37 -0400
commit076dbb1b7a17c077936e0bb291de363277173369 (patch)
tree08ab11979fb106f5473f5b217bd4192cb851f8ee /src/client/views/collections
parent5e1411f62d97e731d90753f7cd262da06a518505 (diff)
fixed slide #'ing for TreeView presentations
Diffstat (limited to 'src/client/views/collections')
-rw-r--r--src/client/views/collections/TreeView.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/client/views/collections/TreeView.tsx b/src/client/views/collections/TreeView.tsx
index 23b6a7f72..a85b2a0d4 100644
--- a/src/client/views/collections/TreeView.tsx
+++ b/src/client/views/collections/TreeView.tsx
@@ -216,8 +216,11 @@ export class TreeView extends React.Component<TreeViewProps> {
this.props.hierarchyIndex !== undefined && this.props.RemFromMap?.(this.doc, this.props.hierarchyIndex);
}
+ componentDidUpdate() {
+ this.props.hierarchyIndex !== undefined && this.props.AddToMap?.(this.doc, this.props.hierarchyIndex);
+ }
+
componentDidMount() {
- // TODO: [AL] add these
this.props.hierarchyIndex !== undefined && this.props.AddToMap?.(this.doc, this.props.hierarchyIndex);
}