diff --git a/frontend/app/components/ui/SVG.tsx b/frontend/app/components/ui/SVG.tsx
index fd1703577..59d03d2b5 100644
--- a/frontend/app/components/ui/SVG.tsx
+++ b/frontend/app/components/ui/SVG.tsx
@@ -133,7 +133,7 @@ const SVG = (props: Props) => {
case 'copy': return ;
case 'credit-card-front': return ;
case 'cubes': return ;
- case 'dashboard-icn': return ;
+ case 'dashboard-icn': return ;
case 'desktop': return ;
case 'device': return ;
case 'diagram-3': return ;
@@ -166,7 +166,7 @@ const SVG = (props: Props) => {
case 'fetch': return ;
case 'file-code': return ;
case 'file-medical-alt': return ;
- case 'file-pdf': return ;
+ case 'file-pdf': return ;
case 'file': return ;
case 'filter': return ;
case 'filters/arrow-return-right': return ;
@@ -271,7 +271,7 @@ const SVG = (props: Props) => {
case 'integrations/jira': return ;
case 'integrations/mobx': return ;
case 'integrations/newrelic-text': return ;
- case 'integrations/newrelic': return ;
+ case 'integrations/newrelic': return ;
case 'integrations/ngrx': return ;
case 'integrations/openreplay-text': return ;
case 'integrations/openreplay': return ;
@@ -305,9 +305,9 @@ const SVG = (props: Props) => {
case 'mobile': return ;
case 'mouse-alt': return ;
case 'next1': return ;
- case 'no-dashboard': return ;
+ case 'no-dashboard': return ;
case 'no-metrics-chart': return ;
- case 'no-metrics': return ;
+ case 'no-metrics': return ;
case 'os/android': return ;
case 'os/chrome_os': return ;
case 'os/fedora': return ;
diff --git a/frontend/app/duck/sessions.js b/frontend/app/duck/sessions.js
index a76a38c94..8213a6b57 100644
--- a/frontend/app/duck/sessions.js
+++ b/frontend/app/duck/sessions.js
@@ -159,11 +159,11 @@ const reducer = (state = initialState, action = {}) => {
const wasInFavorite = state.get('favoriteList').findIndex(({ sessionId }) => sessionId === id) > -1;
return state
- .update('list', (list) => list.map((session) => (session.sessionId === id ? session.set('favorite', !wasInFavorite) : session)))
- .update('favoriteList', (list) =>
- wasInFavorite ? list.filter(({ sessionId }) => sessionId !== id) : list.push(session.set('favorite', true))
- )
- .update('current', (session) => (session.sessionId === id ? session.set('favorite', !wasInFavorite) : session));
+ .update('current', (currentSession) => (currentSession.sessionId === id ? currentSession.set('favorite', !wasInFavorite) : currentSession))
+ .update('list', (list) => list.map((listSession) => (listSession.sessionId === id ? listSession.set('favorite', !wasInFavorite) : listSession)))
+ .update('favoriteList', (list) => session ?
+ wasInFavorite ? list.filter(({ sessionId }) => sessionId !== id) : list.push(session.set('favorite', true)) : list
+ );
}
case SORT: {
const comparator = (s1, s2) => {
diff --git a/frontend/scripts/icons.ts b/frontend/scripts/icons.ts
index 49df92703..c3b5aaf9e 100644
--- a/frontend/scripts/icons.ts
+++ b/frontend/scripts/icons.ts
@@ -90,9 +90,11 @@ ${icons.map(icon => {
.replace(/xmlns\:xlink/g, 'xmlnsXlink')
.replace(/clip-path/g, 'clipPath')
.replace(/clip-rule/g, 'clipRule')
+ .replace(/fill-opacity/g, 'fillOpacity')
.replace(/stop-color/g, 'stopColor')
- .replace(/xml:space="preserve"/g, '')};`
-}).join('\n')}
+ .replace(/xml:space="preserve"/g, '')};`;
+ })
+ .join('\n')}
default:
return ;
// if (window.ENV.PRODUCTION) return null;