aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathieu Suen <mathieu.suen@sonarsource.com>2022-10-11 14:11:38 +0200
committersonartech <sonartech@sonarsource.com>2022-10-12 20:03:43 +0000
commitb58d0e7cd8c90a628a36fb57acc72ed445972327 (patch)
tree81b91dcc5a4c9b2d28e7b04614e20269bc6cf4ab
parent9267135dcdbb2de1ba7512a9334eb55df07b9d0c (diff)
downloadsonarqube-b58d0e7cd8c90a628a36fb57acc72ed445972327.tar.gz
sonarqube-b58d0e7cd8c90a628a36fb57acc72ed445972327.zip
SONAR-17458 Fix empty action for purge background task
-rw-r--r--server/sonar-web/src/main/js/apps/background-tasks/components/TaskActions.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/background-tasks/components/TaskActions.tsx b/server/sonar-web/src/main/js/apps/background-tasks/components/TaskActions.tsx
index 9b27956e0c5..1d6b7063697 100644
--- a/server/sonar-web/src/main/js/apps/background-tasks/components/TaskActions.tsx
+++ b/server/sonar-web/src/main/js/apps/background-tasks/components/TaskActions.tsx
@@ -91,7 +91,7 @@ export default class TaskActions extends React.PureComponent<Props, State> {
render() {
const { component, task } = this.props;
- const canFilter = component === undefined;
+ const canFilter = component === undefined && task.componentName;
const canCancel = task.status === TaskStatuses.Pending;
const canShowStacktrace = task.errorMessage !== undefined;
const canShowWarnings = task.warningCount !== undefined && task.warningCount > 0;