From 98c6d5c048281fbba76ccf0bdc1690d664aecf58 Mon Sep 17 00:00:00 2001 From: Marin Atanasov Date: Fri, 28 Apr 2017 13:08:06 +0300 Subject: [PATCH] Stats: Preserve StatsNavigation site slug in Insights (#13471) --- client/my-sites/stats/stats-insights/index.jsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/client/my-sites/stats/stats-insights/index.jsx b/client/my-sites/stats/stats-insights/index.jsx index 2f5727faf8303f..f555b9024be991 100644 --- a/client/my-sites/stats/stats-insights/index.jsx +++ b/client/my-sites/stats/stats-insights/index.jsx @@ -25,11 +25,11 @@ import StatsFirstView from '../stats-first-view'; import SectionHeader from 'components/section-header'; import StatsViews from '../stats-views'; import Followers from '../stats-followers'; -import { getSelectedSiteId } from 'state/ui/selectors'; +import { getSelectedSiteId, getSelectedSiteSlug } from 'state/ui/selectors'; import { isJetpackSite } from 'state/sites/selectors'; const StatsInsights = ( props ) => { - const { followList, isJetpack, siteId, translate } = props; + const { followList, isJetpack, siteId, siteSlug, translate } = props; const moduleStrings = statsStrings(); let tagsList; @@ -48,7 +48,7 @@ const StatsInsights = ( props ) => {
- +
@@ -97,7 +97,8 @@ const connectComponent = connect( const siteId = getSelectedSiteId( state ); return { isJetpack: isJetpackSite( state, siteId ), - siteId + siteId, + siteSlug: getSelectedSiteSlug( state, siteId ), }; } );