Skip to content

fix(query-builder): Send correct payload to value fetching endpoint when key is unknown #74172

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 12, 2024

Conversation

malwilley
Copy link
Member

@malwilley malwilley commented Jul 11, 2024

A small bug was caused because we do not enable noUncheckedIndexedAccess in our typescript config. We were keying into filterKeys with an unknown key and it returned undefined but the types did not reflect that. (This is an ongoing discussion in the frontend TSC but it's quite a bit of work to enable that config).

This was fixed by providing a fallback when sending the key to getTagValues().

@malwilley malwilley requested a review from a team July 11, 2024 21:14
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jul 11, 2024
Copy link

codecov bot commented Jul 11, 2024

Bundle Report

Changes will increase total bundle size by 302 bytes ⬆️

Bundle name Size Change
app-webpack-bundle-array-push 27.94MB 302 bytes ⬆️

@malwilley malwilley merged commit 168eb3b into master Jul 12, 2024
44 checks passed
@malwilley malwilley deleted the malwilley/fix/search-query-builder-unknown-tag branch July 12, 2024 15:47
priscilawebdev pushed a commit that referenced this pull request Jul 13, 2024
…hen key is unknown (#74172)

A small bug was caused because we do not enable
`noUncheckedIndexedAccess` in our typescript config. We were keying into
`filterKeys` with an unknown key and it returned undefined but the types
did not reflect that. (This is an ongoing discussion in the frontend TSC
but it's quite a bit of work to enable that config).

This was fixed by providing a fallback when sending the key to
`getTagValues()`.
@github-actions github-actions bot locked and limited conversation to collaborators Jul 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants