Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/global/core/workflow/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ export const appData2FlowNodeIO = ({
description: '',
valueType: WorkflowIOValueTypeEnum.any,
required: item.required,
list: item.enums?.map((enumItem) => ({
list: (item.list || item.enums)?.map((enumItem) => ({
label: enumItem.value,
value: enumItem.value
}))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,13 @@ const NodeTemplateList = ({
});

const currentNode = nodeList.find((node) => node.nodeId === handleParams?.nodeId);
if (templateNode.flowNodeType === FlowNodeTypeEnum.loop && !!currentNode?.parentNodeId) {
toast({
status: 'warning',
title: t('workflow:can_not_loop')
});
return;
}

const newNode = nodeTemplate2FlowNode({
template: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ const InputFormEditModal = ({
}}
onClick={() => {
setValue('type', item.value);
setValue('defaultValue', '');
}}
>
<MyIcon
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ const FieldEditModal = ({
}}
onClick={() => {
setValue('renderTypeList', item.value);
setValue('defaultValue', '');
}}
>
<MyIcon
Expand Down
4 changes: 3 additions & 1 deletion projects/app/src/web/core/workflow/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ export const storeNode2FlowNode = ({
moduleTemplatesFlat.find((template) => template.flowNodeType === storeNode.flowNodeType) ||
EmptyNode;

const templateInputs = template.inputs.filter((input) => !input.canEdit);
const templateInputs = template.inputs.filter(
(input) => !input.canEdit && input.deprecated !== true
);
const templateOutputs = template.outputs.filter(
(output) => output.type !== FlowNodeOutputTypeEnum.dynamic
);
Expand Down
Loading