]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-17458 Fix empty action for purge background task
authorMathieu Suen <mathieu.suen@sonarsource.com>
Tue, 11 Oct 2022 12:11:38 +0000 (14:11 +0200)
committersonartech <sonartech@sonarsource.com>
Wed, 12 Oct 2022 20:03:43 +0000 (20:03 +0000)
server/sonar-web/src/main/js/apps/background-tasks/components/TaskActions.tsx

index 9b27956e0c5c0cc8a7415cc06a8fc4c3583eb52a..1d6b70636974c29ca6a2f7d14672c378f821fb92 100644 (file)
@@ -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;