query[queryDataKey].split is not a function
in search query transform
#453
Labels
💻 aspect: code
Concerns the software code in the repository
🛠 goal: fix
Bug fix
🟩 priority: low
Low priority and doesn't need to be rushed
🧱 stack: frontend
Related to the Nuxt frontend
🐛 tooling: sentry
Sentry issue
Sentry link
https://openverse.sentry.io/share/issue/f7bcd3d050574f78b23936e923453e7c/
Description
This stacktrace was a bit difficult to decode, but I was able to pin it down to this line:
https://github.com/WordPress/openverse-frontend/blob/94fb35469ad28cc3cfd3d1b9ef877b695925a736/src/utils/search-query-transform.ts#L202
It appears that, while
qquery[queryDataKey]
may not be falsy from the check above, it might not be the correct type which is expected of an object that has the.split
function available.Reproduction
I was unable to reproduce this myself.
The text was updated successfully, but these errors were encountered: