Skip to content

Commit

Permalink
upcomign: [DI-20929] - Updated types
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhagra-akamai committed Dec 6, 2024
1 parent 755ad00 commit 7cc5507
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const CloudPulseDashboardWithFilters = React.memo(
);

const [filterValue, setFilterValue] = React.useState<FilterData>({
filterId: {},
id: {},
label: {},
});

Expand All @@ -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: {
Expand Down Expand Up @@ -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,
});
Expand Down Expand Up @@ -170,7 +170,7 @@ export const CloudPulseDashboardWithFilters = React.memo(
<CloudPulseDashboard
{...getDashboardProperties({
dashboardObj: dashboard,
filterValue: filterValue.filterId,
filterValue: filterValue.id,
resource,
timeDuration,
})}
Expand Down

0 comments on commit 7cc5507

Please sign in to comment.