From a7e6494d500d85698a705a69a6e32d7a5833a571 Mon Sep 17 00:00:00 2001 From: Matyas Cimbulka Date: Tue, 14 Oct 2025 16:05:44 +0200 Subject: [PATCH 1/2] fix(apify): Fix run action --- components/apify/actions/run-actor/run-actor.mjs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/components/apify/actions/run-actor/run-actor.mjs b/components/apify/actions/run-actor/run-actor.mjs index 4bd29212d3fc7..5f0f77a5cb05c 100644 --- a/components/apify/actions/run-actor/run-actor.mjs +++ b/components/apify/actions/run-actor/run-actor.mjs @@ -170,7 +170,9 @@ export default { glob: item, }; case "json": - return JSON.parse(item); + case "schemaBased": + if (typeof item === "string") return JSON.parse(item); + return item; default: return item; } @@ -223,7 +225,8 @@ export default { props[key].default = defaultValue.map((request) => request.url); } - if (value.editor === "json") { + if (value.editor === "json" || value.editor === "schemaBased") { + console.log("defaultValue", defaultValue); props[key].default = defaultValue.map((item) => JSON.stringify(item)); } } From a854fb16d0b6f9b1f2817842db3f97781c2fe2d0 Mon Sep 17 00:00:00 2001 From: Matyas Cimbulka Date: Wed, 15 Oct 2025 10:31:14 +0200 Subject: [PATCH 2/2] feat(apify): Remove testing console.log --- components/apify/actions/run-actor/run-actor.mjs | 1 - 1 file changed, 1 deletion(-) diff --git a/components/apify/actions/run-actor/run-actor.mjs b/components/apify/actions/run-actor/run-actor.mjs index 5f0f77a5cb05c..413cef8f698fc 100644 --- a/components/apify/actions/run-actor/run-actor.mjs +++ b/components/apify/actions/run-actor/run-actor.mjs @@ -226,7 +226,6 @@ export default { } if (value.editor === "json" || value.editor === "schemaBased") { - console.log("defaultValue", defaultValue); props[key].default = defaultValue.map((item) => JSON.stringify(item)); } }