Parcourir la source

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

tags/1.1.3
dotdotdot il y a 7 mois
Parent
révision
35bafb3235
Aucun compte lié à l'adresse e-mail de l'auteur
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2
    1
      web/app/components/base/chat/utils.ts

+ 2
- 1
web/app/components/base/chat/utils.ts Voir le fichier

@@ -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))
}),
)

Chargement…
Annuler
Enregistrer