From c4574ff042f27246300d0eac98cf3330134bb6ff Mon Sep 17 00:00:00 2001 From: Jon King Date: Mon, 17 Feb 2025 10:15:13 -0700 Subject: [PATCH] fix: properly handle undefined results --- src/core/operations/Jsonata.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/operations/Jsonata.mjs b/src/core/operations/Jsonata.mjs index 1651e093..82cc4d39 100644 --- a/src/core/operations/Jsonata.mjs +++ b/src/core/operations/Jsonata.mjs @@ -58,7 +58,7 @@ class JsonataQuery extends Operation { ); } - return JSON.stringify(result); + return JSON.stringify(result === undefined ? "" : result); } }