aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/code/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/code/utils.js')
-rw-r--r--server/sonar-web/src/main/js/apps/code/utils.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/apps/code/utils.js b/server/sonar-web/src/main/js/apps/code/utils.js
index 2236c75dde8..b0a6e4b2ad0 100644
--- a/server/sonar-web/src/main/js/apps/code/utils.js
+++ b/server/sonar-web/src/main/js/apps/code/utils.js
@@ -91,7 +91,8 @@ function prepareChildren (r) {
return {
components: r.components,
total: r.paging.total,
- page: r.paging.pageIndex
+ page: r.paging.pageIndex,
+ baseComponent: r.baseComponent
};
}
@@ -124,7 +125,7 @@ function getMetrics (isView) {
* @param {boolean} isView
* @returns {Promise}
*/
-export function retrieveComponentBase (componentKey, isView) {
+function retrieveComponentBase (componentKey, isView) {
const existing = getComponentFromBucket(componentKey);
if (existing) {
return Promise.resolve(existing);
@@ -143,7 +144,7 @@ export function retrieveComponentBase (componentKey, isView) {
* @param {boolean} isView
* @returns {Promise}
*/
-function retrieveComponentChildren (componentKey, isView) {
+export function retrieveComponentChildren (componentKey, isView) {
const existing = getComponentChildren(componentKey);
if (existing) {
return Promise.resolve({