diff options
| author | Taras Madan <tarasmadan@google.com> | 2025-02-13 16:12:23 +0100 |
|---|---|---|
| committer | Taras Madan <tarasmadan@google.com> | 2025-02-13 16:23:12 +0000 |
| commit | d9a046cf66ed7650b10bc0e6a567e089644d9004 (patch) | |
| tree | 9de5dbfc2120f1a17ac436b06a4bd41888bbed9a | |
| parent | 8870579e681258c44bb8f70a0ec4dab265961494 (diff) | |
dashboard/app: fix url generation
It currently generates &subsystem=null&manager=null&unique-only=null.
I'd like to see &subsystem=&manager=&unique-only=
| -rw-r--r-- | dashboard/app/static/coverage.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dashboard/app/static/coverage.js b/dashboard/app/static/coverage.js index dbc68b7c0..7f182d6d5 100644 --- a/dashboard/app/static/coverage.js +++ b/dashboard/app/static/coverage.js @@ -39,9 +39,9 @@ function initUpdateForm(){ // "#file-details-prev" and "#file-details-curr" are the corresponding <div>s used to show per-file details. function onShowFileContent(url) { var curUrlParams = new URLSearchParams(window.location.search); - url += '&subsystem=' + curUrlParams.get('subsystem') - url += '&manager=' + curUrlParams.get('manager') - url += '&unique-only=' + curUrlParams.get('unique-only') + url += '&subsystem=' + (curUrlParams.get('subsystem') || "") + url += '&manager=' + (curUrlParams.get('manager') || "") + url += '&unique-only=' + (curUrlParams.get('unique-only') || "") $.get(url, function(response) { $("#file-content-prev").html($("#file-content-curr").html()); |
