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({