aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/helpers/storage.js
diff options
context:
space:
mode:
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>2017-06-23 17:34:10 +0200
committerGrégoire Aubert <gregoire.aubert@sonarsource.com>2017-07-04 14:15:34 +0200
commit3a604bda9aa574c291f764ca8791b9af91d66a67 (patch)
tree4e92e74a1c5fb3d9fa9c483fb3fb1b742b45ce68 /server/sonar-web/src/main/js/helpers/storage.js
parent21cdccf048db95fdeae2bf7046c2f2d830d172f5 (diff)
downloadsonarqube-3a604bda9aa574c291f764ca8791b9af91d66a67.tar.gz
sonarqube-3a604bda9aa574c291f764ca8791b9af91d66a67.zip
SONAR-9414 Display a preview of the project activity graph on the project page
Diffstat (limited to 'server/sonar-web/src/main/js/helpers/storage.js')
-rw-r--r--server/sonar-web/src/main/js/helpers/storage.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/helpers/storage.js b/server/sonar-web/src/main/js/helpers/storage.js
index ac6fa964f5f..fc7ec4d0ad5 100644
--- a/server/sonar-web/src/main/js/helpers/storage.js
+++ b/server/sonar-web/src/main/js/helpers/storage.js
@@ -64,4 +64,4 @@ export const saveSort = (sort: ?string) => save(PROJECTS_SORT, sort);
export const getSort = () => window.localStorage.getItem(PROJECTS_SORT);
export const saveGraph = (graph: ?string) => save(PROJECT_ACTIVITY_GRAPH, graph);
-export const getGraph = () => window.localStorage.getItem(PROJECT_ACTIVITY_GRAPH);
+export const getGraph = () => window.localStorage.getItem(PROJECT_ACTIVITY_GRAPH) || 'overview';