2
0

🐛 (chat) Enable prefilledVariables in preview mode

Also make list values compatible
This commit is contained in:
Baptiste Arnaud
2024-02-28 14:49:04 +01:00
parent 229453d3d3
commit 9b656214d1
7 changed files with 28 additions and 10 deletions

View File

@ -10,6 +10,8 @@ export const prefillVariables = (
if (!prefilledVariable) return variable
return {
...variable,
value: safeStringify(prefilledVariable),
value: Array.isArray(prefilledVariable)
? prefilledVariable.map(safeStringify)
: safeStringify(prefilledVariable),
}
})