fix: properly handle undefined results

This commit is contained in:
Jon King 2025-02-17 10:15:13 -07:00
parent 2b2435210b
commit c4574ff042
No known key found for this signature in database
GPG key ID: 426783717306C07E

View file

@ -58,7 +58,7 @@ class JsonataQuery extends Operation {
);
}
return JSON.stringify(result);
return JSON.stringify(result === undefined ? "" : result);
}
}