fix(config): address getting configUrl from options (#9840)

Refs #9819
This commit is contained in:
Oliwia Rogala
2024-04-18 14:35:50 +02:00
committed by GitHub
parent 6cba05706e
commit dc9650b80b
4 changed files with 7 additions and 4 deletions

View File

@@ -13,7 +13,10 @@ const optionsFromQuery = () => (options) => {
const urlSearchParams = options.queryConfigEnabled ? parseSearch() : {}
return Object.entries(urlSearchParams).reduce((acc, [key, value]) => {
if (key === "urls.primaryName") {
// TODO(oliwia.rogala@smartbear.com): drop support for `config` in the next major release
if (key === "config") {
acc["configUrl"] = value
} else if (key === "urls.primaryName") {
acc[key] = value
} else {
acc = set(acc, key, value)