Skip to content

Commit

Permalink
Bug 1864125 - Dynamically update intermittent icon when other sucessf…
Browse files Browse the repository at this point in the history
…ul job appears.
  • Loading branch information
arai-a authored and Archaeopteryx committed Feb 9, 2024
1 parent 4816f67 commit e1de390
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ui/job-view/pushes/JobButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,19 @@ export default class JobButtonComponent extends React.Component {
* shallow compare would allow.
*/
shouldComponentUpdate(nextProps, nextState) {
const { visible, resultStatus, failureClassificationId } = this.props;
const {
visible,
resultStatus,
failureClassificationId,
intermittent,
} = this.props;
const { isSelected, isRunnableSelected } = this.state;

return (
visible !== nextProps.visible ||
resultStatus !== nextProps.resultStatus ||
failureClassificationId !== nextProps.failureClassificationId ||
intermittent !== nextProps.intermittent ||
isSelected !== nextState.isSelected ||
isRunnableSelected !== nextState.isRunnableSelected
);
Expand Down

0 comments on commit e1de390

Please sign in to comment.