fix: the error occurring when passing inputs on iOS devices and some … (#16534)

pull/14262/head
dotdotdot 1 year ago committed by Bharat Ramanathan
parent 109488fc0d
commit 6dd648b57a

@ -13,8 +13,9 @@ async function decodeBase64AndDecompress(base64String: string) {
async function getProcessedInputsFromUrlParams(): Promise<Record<string, any>> {
const urlParams = new URLSearchParams(window.location.search)
const inputs: Record<string, any> = {}
const entriesArray = Array.from(urlParams.entries())
await Promise.all(
urlParams.entries().map(async ([key, value]) => {
entriesArray.map(async ([key, value]) => {
inputs[key] = await decodeBase64AndDecompress(decodeURIComponent(value))
}),
)

Loading…
Cancel
Save