Skip to content

Commit

Permalink
Bug 1242905 - Fix honoring group_state url param on load
Browse files Browse the repository at this point in the history
Fixes a bug found after deploy.
  • Loading branch information
Cameron Dawson committed Feb 15, 2018
1 parent d0d42dd commit 236612a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/job-view/JobGroup.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ export default class JobGroup extends React.Component {
this.thResultStatusInfo = this.props.$injector.get('thResultStatusInfo');

// The group should be expanded initially if the global group state is expanded
const groupState = new URLSearchParams(location.hash.split('?')[1]).get('group_state');
this.state = {
expanded: this.props.expanded || false,
expanded: this.props.expanded || groupState === 'expanded',
showDuplicateJobs: false
};
}
Expand Down

0 comments on commit 236612a

Please sign in to comment.