aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Davis <jeremy.davis@sonarsource.com>2024-03-15 11:09:28 +0100
committersonartech <sonartech@sonarsource.com>2024-03-16 20:02:47 +0000
commite59303641d03868b796a4d6f6e9562aaf947444e (patch)
treedf0fa55e572193f5eb82ab451894e0e6ea7f6536
parent720d6dd5c4dc08327d8b2271949a66855fb88852 (diff)
downloadsonarqube-e59303641d03868b796a4d6f6e9562aaf947444e.tar.gz
sonarqube-e59303641d03868b796a4d6f6e9562aaf947444e.zip
SONAR-21865 Fix Background Tasks' bad request
-rw-r--r--server/sonar-web/src/main/js/apps/background-tasks/components/Search.tsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/background-tasks/components/Search.tsx b/server/sonar-web/src/main/js/apps/background-tasks/components/Search.tsx
index 181bb68a2f9..3da2cf77431 100644
--- a/server/sonar-web/src/main/js/apps/background-tasks/components/Search.tsx
+++ b/server/sonar-web/src/main/js/apps/background-tasks/components/Search.tsx
@@ -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>