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(