File tree Expand file tree Collapse file tree
src/Shared/Components/Table Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -200,7 +200,11 @@ const InternalTable = <
200200 ( userProvidedAreFiltersApplied !== undefined ? userProvidedAreFiltersApplied : areFiltersApplied ) ? (
201201 < GenericFilterEmptyState
202202 { ...emptyStateConfig . noRowsForFilterConfig }
203- handleClearFilters = { userGivenUrlClearFilters ?? clearFilters }
203+ handleClearFilters = {
204+ emptyStateConfig . noRowsForFilterConfig . handleClearFilters !== undefined
205+ ? emptyStateConfig . noRowsForFilterConfig . handleClearFilters
206+ : ( userGivenUrlClearFilters ?? clearFilters )
207+ }
204208 />
205209 ) : (
206210 < GenericEmptyState { ...emptyStateConfig . noRowsConfig } />
Original file line number Diff line number Diff line change @@ -291,7 +291,7 @@ export type InternalTableProps<
291291
292292 emptyStateConfig : {
293293 noRowsConfig : Omit < GenericEmptyStateType , 'children' >
294- noRowsForFilterConfig ?: Pick < GenericFilterEmptyStateProps , 'title' | 'subTitle' > & {
294+ noRowsForFilterConfig ?: Pick < GenericFilterEmptyStateProps , 'title' | 'subTitle' | 'handleClearFilters' > & {
295295 clearFilters ?: ( ) => void
296296 }
297297 }
You can’t perform that action at this time.
0 commit comments