fix(templates): add trim on payload in value processor

This commit is contained in:
Simon Loir
2025-10-21 21:29:05 +02:00
parent ceb4cc453e
commit be80148310

View File

@@ -141,8 +141,8 @@ export function processValue(
}
if (
typeof payload === "string" &&
payload.startsWith("{") &&
payload.endsWith("}")
payload.trim().startsWith("{") &&
payload.trim().endsWith("}")
) {
try {
payload = JSON.parse(payload);