Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

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

dotdotdot35bafb32357c
diff --git a/web/app/components/base/chat/utils.ts b/web/app/components/base/chat/utils.ts
index 729a50d9968..030bb13991b 100644
--- a/web/app/components/base/chat/utils.ts
+++ b/web/app/components/base/chat/utils.ts
@@ -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))
}),
)