We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4aa97b0 commit 5cc0e98Copy full SHA for 5cc0e98
packages/server/src/services/nodes/index.ts
@@ -123,6 +123,13 @@ const executeCustomFunction = async (requestBody: any) => {
123
const functionInputVariables = Object.fromEntries(
124
[...(body?.javascriptFunction ?? '').matchAll(/\$([a-zA-Z0-9_]+)/g)].map((g) => [g[1], undefined])
125
)
126
+ if (functionInputVariables && Object.keys(functionInputVariables).length) {
127
+ for (const key in functionInputVariables) {
128
+ if (key.includes('vars')) {
129
+ delete functionInputVariables[key]
130
+ }
131
132
133
const nodeData = { inputs: { functionInputVariables, ...body } }
134
if (Object.prototype.hasOwnProperty.call(appServer.nodesPool.componentNodes, 'customFunction')) {
135
try {
0 commit comments