bug #IBUZEP 2.13.0中刷新FOR(数字)的循环时无法刷新

This commit is contained in:
everywhere.z
2025-03-20 15:46:35 +08:00
parent 8ced733b03
commit c734c6da97
2 changed files with 2 additions and 1 deletions

View File

@@ -43,6 +43,7 @@ public class ForOperator extends BaseOperator<ForCondition> {
nodeForComponent.setNodeId(StrUtil.format("LOOP_{}", forCount));
nodeForComponent.setType(NodeTypeEnum.FOR);
node.setInstance(nodeForComponent);
node.setId(nodeForComponent.getNodeId());
}
else {
throw new QLException("The parameter must be Node item");

View File

@@ -137,7 +137,7 @@ public class LiteflowMetaOperator {
*/
public static List<Node> getNodes(String chainId, String nodeId){
return getNodes(chainId).stream().filter(
node -> node.getId().equals(nodeId)
node -> nodeId.equals(node.getId())
).collect(Collectors.toList());
}