Skip to content

Commit cafa525

Browse files
committed
COMPASS-2241: Don't resize non-existant schema (#1281)
1 parent bbbae97 commit cafa525

File tree

1 file changed

+3
-1
lines changed
  • src/internal-plugins/home/lib/component

1 file changed

+3
-1
lines changed

src/internal-plugins/home/lib/component/home.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ class Home extends React.Component {
7272

7373
collapseSidebar() {
7474
this.setState({ collapsed: !this.state.collapsed });
75-
setTimeout(this.SchemaActions.resizeMiniCharts, COMPASS_SIDEBAR_TRANSITION_TIME_MS);
75+
if (this.SchemaActions) {
76+
setTimeout(this.SchemaActions.resizeMiniCharts, COMPASS_SIDEBAR_TRANSITION_TIME_MS);
77+
}
7678

7779
// Probably would prefer an onChartsActivated lifecycle method here...
7880
const ChartActions = app.appRegistry.getAction('Chart.Actions');

0 commit comments

Comments
 (0)