diff --git a/static/js/tools/statsvar_menu.tsx b/static/js/tools/statsvar_menu.tsx index c91b0e9f7a..153dde24eb 100644 --- a/static/js/tools/statsvar_menu.tsx +++ b/static/js/tools/statsvar_menu.tsx @@ -154,7 +154,7 @@ class Node extends Component { private _handleHashChange() { const statsVarPathNext = []; let check = false; - let expand = false; + let expand = this.state.expanded; for (const statsVarPath of this.props.statsVarPaths) { if (statsVarPath && statsVarPath[0] === this.props.idx) { if (statsVarPath.length === 1) {