Skip to content

Commit

Permalink
fixup! Persist selected filters in checks results inside Redux
Browse files Browse the repository at this point in the history
  • Loading branch information
dottorblaster committed May 23, 2023
1 parent 50fd379 commit 5474688
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ import Filter from '@components/Table/Filter';
export const RESULT_FILTER_FIELD = 'result';

const getFilters = (savedFilters, searchParams) =>
savedFilters && savedFilters.length >= 0 && searchParams.getAll('health').length === 0
savedFilters &&
savedFilters.length >= 0 &&
searchParams.getAll('health').length === 0
? savedFilters
: searchParams.getAll('health');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ describe('ExecutionResults', () => {
executionData={executionData}
executionError={executionError}
savedFilters={['passing']}
/>,
/>
);

expect(screen.getAllByText('test-cluster')).toHaveLength(2);
Expand Down

0 comments on commit 5474688

Please sign in to comment.