diff --git a/packages/plugins/workflow/src/client/nodes/create.tsx b/packages/plugins/workflow/src/client/nodes/create.tsx index b9760d2149..80b14bd47a 100644 --- a/packages/plugins/workflow/src/client/nodes/create.tsx +++ b/packages/plugins/workflow/src/client/nodes/create.tsx @@ -49,8 +49,8 @@ export default { { - onChange({ type, options: { ...options, path: value?.join('.') } }); + onChange={(path) => { + onChange({ type, options: { ...options, path } }); }} /> ); diff --git a/packages/plugins/workflow/src/client/nodes/query.tsx b/packages/plugins/workflow/src/client/nodes/query.tsx index 2667dbef9a..e754c8280a 100644 --- a/packages/plugins/workflow/src/client/nodes/query.tsx +++ b/packages/plugins/workflow/src/client/nodes/query.tsx @@ -54,8 +54,8 @@ export default { { - onChange({ type, options: { ...options, path: value?.join('.') } }); + onChange={(path) => { + onChange({ type, options: { ...options, path } }); }} /> ); diff --git a/packages/plugins/workflow/src/client/triggers/collection.tsx b/packages/plugins/workflow/src/client/triggers/collection.tsx index 3ac7cfed44..a3bdd97aa9 100644 --- a/packages/plugins/workflow/src/client/triggers/collection.tsx +++ b/packages/plugins/workflow/src/client/triggers/collection.tsx @@ -138,7 +138,7 @@ export default { collection={workflow.config.collection} value={value} onChange={(value) => { - onChange({ type, options: { ...options, path: `data.${value.join('.')}` } }); + onChange({ type, options: { ...options, path: `data.${value}` } }); }} /> );