Skip to content

Commit

Permalink
fix on change func
Browse files Browse the repository at this point in the history
  • Loading branch information
TalMalka123 committed Nov 6, 2023
1 parent 12da6ca commit d31522a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import _ from 'lodash';

export interface DisplayFilterPartialProps {
label: string;
onChange?: (show: boolean) => void;
onChange?: (name: string) => void;
}

export interface ControlledDisplayFiltersGroupProps {
Expand Down Expand Up @@ -66,7 +66,7 @@ export function ControlledDisplayFiltersGroup({
}
setDisplayedFilters(updatedFilters);
if(item.onChange)
item.onChange(show)
item.onChange(item.label)
}
}
/>
Expand Down

0 comments on commit d31522a

Please sign in to comment.