You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(replay): Fixes type error if same param is in url (#68851)
There are edge cases where getParamValue() will have a return type of
string[] due to `location.query[key]` which caused the type error. This
edge case happens when the same key is in the URL more than once, which
could happen if someone pastes the url twice.
We are expecting a string from this function, so if
`location.query[key]` is an array, we will just return the first value
in the array.
Fixes JAVASCRIPT-2SFK
// location.query.key can return string[] but we expect a singular value from this function, so we return the first string (this is picked arbitrarily) if it's string[]
0 commit comments