]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-21865 Fix Background Tasks' bad request
authorJeremy Davis <jeremy.davis@sonarsource.com>
Fri, 15 Mar 2024 10:09:28 +0000 (11:09 +0100)
committersonartech <sonartech@sonarsource.com>
Sat, 16 Mar 2024 20:02:47 +0000 (20:02 +0000)
server/sonar-web/src/main/js/apps/background-tasks/components/Search.tsx

index 181bb68a2f9056e429f28e8617f27fa22864f8c3..3da2cf77431e1682a22ae3eb8c536967b859409a 100644 (file)
@@ -62,6 +62,10 @@ export default class Search extends React.PureComponent<Props> {
     this.props.onFilterUpdate({ query });
   };
 
+  handleReload = () => {
+    this.props.onReload();
+  };
+
   handleReset = () => {
     this.props.onFilterUpdate(DEFAULT_FILTERS);
   };
@@ -142,7 +146,7 @@ export default class Search extends React.PureComponent<Props> {
             <ButtonSecondary
               className="js-reload sw-mr-2"
               disabled={loading}
-              onClick={this.props.onReload}
+              onClick={this.handleReload}
             >
               {translate('reload')}
             </ButtonSecondary>