diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/projects/utils.ts')
-rw-r--r-- | server/sonar-web/src/main/js/apps/projects/utils.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/projects/utils.ts b/server/sonar-web/src/main/js/apps/projects/utils.ts index c8f99c27b56..7ad9dd4e7c0 100644 --- a/server/sonar-web/src/main/js/apps/projects/utils.ts +++ b/server/sonar-web/src/main/js/apps/projects/utils.ts @@ -198,7 +198,7 @@ export function fetchProjects( const value = isDiffMetric(measure.metric) ? getPeriodValue(measure, 1) : measure.value; - if (value != undefined) { + if (value !== undefined) { componentMeasures[measure.metric] = value; } }); @@ -248,7 +248,7 @@ function convertToQueryData( if (sort.s) { data.s = sort.s; } - if (sort.hasOwnProperty('asc')) { + if (sort.asc !== undefined) { data.asc = sort.asc; } return data; |