Skip to content

Commit

Permalink
move getExpanded to renderSchemaSelector
Browse files Browse the repository at this point in the history
  • Loading branch information
mcbrewster committed Aug 20, 2019
1 parent 7ffeb6e commit 3ee410c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web-console/src/views/query-view/column-tree/column-tree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,8 @@ export class ColumnTree extends React.PureComponent<ColumnTreeProps, ColumnTreeS
const { columnTree, selectedTreeIndex } = this.state;
if (!columnTree) return null;

this.setExpanded();

return (
<HTMLSelect
className="schema-selector"
Expand Down Expand Up @@ -392,8 +394,6 @@ export class ColumnTree extends React.PureComponent<ColumnTreeProps, ColumnTreeS
const { columnMetadataLoading } = this.props;
const { columnTree, currentSchemaSubtree } = this.state;

this.setExpanded();

if (columnMetadataLoading) {
return (
<div className="column-tree">
Expand Down

0 comments on commit 3ee410c

Please sign in to comment.