aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/api/ce.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/api/ce.js')
-rw-r--r--server/sonar-web/src/main/js/api/ce.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/api/ce.js b/server/sonar-web/src/main/js/api/ce.js
index 4fcf075acea..edabd6e9ea7 100644
--- a/server/sonar-web/src/main/js/api/ce.js
+++ b/server/sonar-web/src/main/js/api/ce.js
@@ -27,5 +27,6 @@ export function cancelAllTasks () {
export function getTasksForComponent(componentId) {
let url = baseUrl + '/api/ce/component';
- return $.get(url, { componentId });
+ let data = { componentId };
+ return new Promise((resolve) => $.get(url, data).done(resolve));
}