From 477cb623cf20db20c71a25d52b5872f0069627f5 Mon Sep 17 00:00:00 2001 From: Aman Chaturvedi Date: Thu, 17 Oct 2024 18:32:31 +0530 Subject: [PATCH] NTP-6399 | FCM hotfix (#1162) --- src/pages/sensei/actions/index.tsx | 5 +++-- src/pages/sensei/index.tsx | 15 ++++++++------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/pages/sensei/actions/index.tsx b/src/pages/sensei/actions/index.tsx index ae8a05f7..9416d0d8 100644 --- a/src/pages/sensei/actions/index.tsx +++ b/src/pages/sensei/actions/index.tsx @@ -187,14 +187,15 @@ export const getOverallMetricV2 = () => (dispatch: Dispatch) => { dispatch(setMetricTableV2Loading(true)); const params = readQueryParams() as SenseiPageParams; - const { pageIndex, pageSize, sortDirection, dpdBucket, sortBy } = + const { pageIndex, pageSize, sortDirection, dpdBucket, sortBy, teamLeadReferenceId } = params?.OverallMetricTable || {}; const payload = { pageNo: pageIndex ? Number(pageIndex) : BE_DEFAULT_PAGE_NUMBER, pageSize: pageSize || DEFAULT_PAGE_SIZE, sortBy, dpdBucket, - orderBy: sortDirection + orderBy: sortDirection, + teamLeadReferenceId }; const url = getApiUrl(ApiKeys.GET_OVERALL_V2); axiosInstance diff --git a/src/pages/sensei/index.tsx b/src/pages/sensei/index.tsx index e8a6fb78..7a910fa8 100644 --- a/src/pages/sensei/index.tsx +++ b/src/pages/sensei/index.tsx @@ -141,12 +141,6 @@ const Index = () => { value: 'Daily Planning', component: , relativePath: '/sensei/daily_planning' - }, - { - key: TAB_KEYS.OVERALL_METRIC, - value: 'Overall Metric', - component: , - relativePath: '/sensei/overall_metric' } ] ); @@ -154,10 +148,17 @@ const Index = () => { if (fcmOverallMetricsV2) { tabs.push({ key: TAB_KEYS.OVERALL_METRIC_V2, - value: 'Overall Metric V2', + value: 'Overall Metric', component: , relativePath: '/sensei/overall_metric_v2' }); + } else if (fcmDashboard) { + tabs.push({ + key: TAB_KEYS.OVERALL_METRIC, + value: 'Overall Metric', + component: , + relativePath: '/sensei/overall_metric' + }); } if (liveLocationTrackerFeatureFlag) { tabs.push({