NTP-6399 | FCM hotfix (#1162)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user