fix(prejoin) Check for valid url for prejoin (#13468)

- `getPropertyValue` calls `parseUrlParam` with the connection URL from store, which is not yet defined
This commit is contained in:
Horatiu Muresan
2023-06-19 15:52:38 +03:00
committed by GitHub
parent 51a4e7daa3
commit d608cf40f5

View File

@@ -25,6 +25,10 @@ export function parseURLParams(
url: URL | string,
dontParse = false,
source = 'hash') {
if (!url) {
return {};
}
if (typeof url === 'string') {
// eslint-disable-next-line no-param-reassign
url = new URL(url);