diff options
Diffstat (limited to 'server/sonar-web/src/main/js/store/notifications/duck.js')
-rw-r--r-- | server/sonar-web/src/main/js/store/notifications/duck.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/server/sonar-web/src/main/js/store/notifications/duck.js b/server/sonar-web/src/main/js/store/notifications/duck.js index c1a737db837..81523b81eef 100644 --- a/server/sonar-web/src/main/js/store/notifications/duck.js +++ b/server/sonar-web/src/main/js/store/notifications/duck.js @@ -148,12 +148,12 @@ export const getGlobal = (state: State): NotificationsState => ( export const getProjects = (state: State): Array<string> => ( uniqBy( - state.notifications.filter(n => n.project).map(n => ({ - key: n.project, - name: n.projectName, - organization: n.organization - })), - project => project.key + state.notifications.filter(n => n.project).map(n => ({ + key: n.project, + name: n.projectName, + organization: n.organization + })), + project => project.key ) ); |