- {instruction.render ? instruction.render(data) :
}
- {!instruction.endding ? (
+
+ {!endding ? (
) : (
node.upstreamId === data.id && node.branchIndex != null);
diff --git a/packages/plugins/workflow/src/client/nodes/parallel.tsx b/packages/plugins/workflow/src/client/nodes/parallel.tsx
index e9e825814..03d5a5fc7 100644
--- a/packages/plugins/workflow/src/client/nodes/parallel.tsx
+++ b/packages/plugins/workflow/src/client/nodes/parallel.tsx
@@ -44,7 +44,7 @@ export default {
},
},
view: {},
- render(data) {
+ component: function Component({ data }) {
const {
id,
config: { mode },
diff --git a/packages/plugins/workflow/src/client/triggers/index.tsx b/packages/plugins/workflow/src/client/triggers/index.tsx
index d2444dd7a..80c1bafba 100644
--- a/packages/plugins/workflow/src/client/triggers/index.tsx
+++ b/packages/plugins/workflow/src/client/triggers/index.tsx
@@ -58,7 +58,6 @@ export interface Trigger {
view?: ISchema;
scope?: { [key: string]: any };
components?: { [key: string]: any };
- render?(props): React.ReactNode;
useInitializers?(config): SchemaInitializerItemOptions | null;
initializers?: any;
}
@@ -86,7 +85,7 @@ function TriggerExecution() {
'x-component-props': {
title: ,
shape: 'circle',
- className: cx(nodeJobButtonClass, 'workflow-node-job-button'),
+ className: nodeJobButtonClass,
type: 'primary',
},
properties: {
@@ -178,7 +177,7 @@ export const TriggerConfig = () => {
}
const whiteSet = new Set(['workflow-node-meta', 'workflow-node-config-button', 'ant-input-disabled']);
for (let el = ev.target; el && el !== ev.currentTarget; el = el.parentNode) {
- if ((Array.from(el.classList) as string[]).some((name: string) => whiteSet.has(name))) {
+ if ((Array.from(el.classList ?? []) as string[]).some((name: string) => whiteSet.has(name))) {
setEditingConfig(true);
ev.stopPropagation();
return;
diff --git a/packages/plugins/workflow/src/server/instructions/request.ts b/packages/plugins/workflow/src/server/instructions/request.ts
index 135e1eb93..5b1db106a 100644
--- a/packages/plugins/workflow/src/server/instructions/request.ts
+++ b/packages/plugins/workflow/src/server/instructions/request.ts
@@ -73,7 +73,7 @@ export default class implements Instruction {
this.plugin.app.logger.info(`[Workflow] request (#${node.id}) sent to "${config.url}", waiting for response...`);
- return job;
+ return null;
}
async resume(node: FlowNodeModel, job, processor: Processor) {