From 7cc550749b42367e95c1fa1ce333ca2c2ee5c15c Mon Sep 17 00:00:00 2001 From: nikhagra-akamai Date: Fri, 6 Dec 2024 14:51:03 +0530 Subject: [PATCH] upcomign: [DI-20929] - Updated types --- .../Dashboard/CloudPulseDashboardWithFilters.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/manager/src/features/CloudPulse/Dashboard/CloudPulseDashboardWithFilters.tsx b/packages/manager/src/features/CloudPulse/Dashboard/CloudPulseDashboardWithFilters.tsx index 96944b9f95d..254f1724914 100644 --- a/packages/manager/src/features/CloudPulse/Dashboard/CloudPulseDashboardWithFilters.tsx +++ b/packages/manager/src/features/CloudPulse/Dashboard/CloudPulseDashboardWithFilters.tsx @@ -39,7 +39,7 @@ export const CloudPulseDashboardWithFilters = React.memo( ); const [filterValue, setFilterValue] = React.useState({ - filterId: {}, + id: {}, label: {}, }); @@ -60,8 +60,8 @@ export const CloudPulseDashboardWithFilters = React.memo( (filterKey: string, value: FilterValueType, labels: string[]) => { setFilterValue((prev) => { return { - filterId: { - ...prev.filterId, + id: { + ...prev.id, [filterKey]: value, }, label: { @@ -112,7 +112,7 @@ export const CloudPulseDashboardWithFilters = React.memo( const isFilterBuilderNeeded = checkIfFilterBuilderNeeded(dashboard); const isMandatoryFiltersSelected = checkMandatoryFiltersSelected({ dashboardObj: dashboard, - filterValue: filterValue.filterId, + filterValue: filterValue.id, resource, timeDuration, }); @@ -170,7 +170,7 @@ export const CloudPulseDashboardWithFilters = React.memo(