From 3a604bda9aa574c291f764ca8791b9af91d66a67 Mon Sep 17 00:00:00 2001 From: Grégoire Aubert Date: Fri, 23 Jun 2017 17:34:10 +0200 Subject: SONAR-9414 Display a preview of the project activity graph on the project page --- server/sonar-web/src/main/js/helpers/storage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/sonar-web/src/main/js/helpers/storage.js') 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'; -- cgit v1.2.3