Bug 1864125 - Dynamically update intermittent icon when other sucessful job appears.

This commit is contained in:
Tooru Fujisawa 2023-11-18 16:08:30 +09:00 коммит произвёл Sebastian Hengst
Родитель 4816f675f7
Коммит e1de39073c
1 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -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
);