Skip to content

fix: respect initial filters when array#672

Open
PeterYurkovich wants to merge 1 commit into
patternfly:mainfrom
PeterYurkovich:respect-array-initial-values
Open

fix: respect initial filters when array#672
PeterYurkovich wants to merge 1 commit into
patternfly:mainfrom
PeterYurkovich:respect-array-initial-values

Conversation

@PeterYurkovich

Copy link
Copy Markdown

Resolves #671

Due to searchParams.getAll returning an empty array when the URL doesn't contain the url param, the truthy check on urlValue will evaluate to truthy even when it should be evaluated to false. This PR adjusts the determination of if initialFilters should be used based on if isArrayFilter is true. It also adds a test to prevent future regressions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Initial Filters is not respected when array type filter

1 participant