Skip to content

Commit

Permalink
fix(RHINENG-3106): fix reset filter button after hide/show advisory f… (
Browse files Browse the repository at this point in the history
#2127)

* fix(RHINENG-3106): fix reset filter button after hide/show advisory filter

* chore: fix lint errors
  • Loading branch information
mkholjuraev authored Jul 22, 2024
1 parent bafe7f7 commit c3e1fe4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Components/SmartComponents/CVEs/CVEsTableToolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const CVEsTableToolbarWithContext = ({ context, canEditStatusOrBusinessRisk, can

const defaultFilters = getCveDefaultFilters(
shouldUseHybridSystemFilter,
includesCvesWithoutErrata
includesCvesWithoutErrata || showCvesWithoutErrata
);

const selectOptions = selectAllCheckbox({
Expand Down Expand Up @@ -165,7 +165,11 @@ const CVEsTableToolbarWithContext = ({ context, canEditStatusOrBusinessRisk, can
filters: buildActiveFilters(params, [], shouldUseHybridSystemFilter),
onDelete: (_, chips, reset) => removeFilters(chips, methods.apply, reset, defaultFilters),
deleteTitle: intl.formatMessage(messages.resetFilters),
showDeleteButton: !isFilterInDefaultState(params, defaultFilters, CVES_FILTER_PARAMS)
showDeleteButton: !isFilterInDefaultState(
params,
defaultFilters,
CVES_FILTER_PARAMS
)
}}
exportConfig={canExport && {
isDisabled: cves.meta.total_items === 0,
Expand Down

0 comments on commit c3e1fe4

Please sign in to comment.