next-workflow-builder 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/server/api/index.js +2 -2
- package/package.json +1 -1
package/dist/server/api/index.js
CHANGED
|
@@ -463,7 +463,7 @@ function replaceTemplateVariable(match, nodeId, rest, outputs, evalContext, varC
|
|
|
463
463
|
const fields = fieldPath.split(".");
|
|
464
464
|
let current = output.data;
|
|
465
465
|
const firstField = fields[0];
|
|
466
|
-
if (current && typeof current === "object" && "success" in current && "data" in current && firstField !== "success" && firstField !== "data" && firstField !== "error") {
|
|
466
|
+
if (current && typeof current === "object" && "success" in current && "data" in current && firstField !== "success" && firstField !== "data" && firstField !== "error" && !(firstField in current)) {
|
|
467
467
|
current = current.data;
|
|
468
468
|
}
|
|
469
469
|
for (const field of fields) {
|
|
@@ -620,7 +620,7 @@ function processTemplates(config, outputs) {
|
|
|
620
620
|
const fields = fieldPath.split(".");
|
|
621
621
|
let current = output.data;
|
|
622
622
|
const firstField = fields[0];
|
|
623
|
-
if (current && typeof current === "object" && "success" in current && "data" in current && firstField !== "success" && firstField !== "data" && firstField !== "error") {
|
|
623
|
+
if (current && typeof current === "object" && "success" in current && "data" in current && firstField !== "success" && firstField !== "data" && firstField !== "error" && !(firstField in current)) {
|
|
624
624
|
current = current.data;
|
|
625
625
|
}
|
|
626
626
|
for (const field of fields) {
|