NTP-6399 | FCM hotfix (#1162)

This commit is contained in:
Aman Chaturvedi
2024-10-17 18:32:31 +05:30
committed by GitHub
parent 2e43d43611
commit 477cb623cf
2 changed files with 11 additions and 9 deletions

View File

@@ -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

View File

@@ -141,12 +141,6 @@ const Index = () => {
value: 'Daily Planning',
component: <DailyPlanning />,
relativePath: '/sensei/daily_planning'
},
{
key: TAB_KEYS.OVERALL_METRIC,
value: 'Overall Metric',
component: <OverAllMetric />,
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: <OverallMetricsV2 />,
relativePath: '/sensei/overall_metric_v2'
});
} else if (fcmDashboard) {
tabs.push({
key: TAB_KEYS.OVERALL_METRIC,
value: 'Overall Metric',
component: <OverAllMetric />,
relativePath: '/sensei/overall_metric'
});
}
if (liveLocationTrackerFeatureFlag) {
tabs.push({