mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-28 00:56:26 +00:00
fix: loop node cannot save parentId (#2845)
This commit is contained in:
1
packages/global/core/workflow/type/node.d.ts
vendored
1
packages/global/core/workflow/type/node.d.ts
vendored
@@ -25,6 +25,7 @@ import { ParentIdType } from 'common/parentFolder/type';
|
|||||||
import { AppTypeEnum } from 'core/app/constants';
|
import { AppTypeEnum } from 'core/app/constants';
|
||||||
|
|
||||||
export type FlowNodeCommonType = {
|
export type FlowNodeCommonType = {
|
||||||
|
parentNodeId?: string;
|
||||||
flowNodeType: FlowNodeTypeEnum; // render node card
|
flowNodeType: FlowNodeTypeEnum; // render node card
|
||||||
abandon?: boolean; // abandon node
|
abandon?: boolean; // abandon node
|
||||||
|
|
||||||
|
@@ -16,6 +16,7 @@ export const uiWorkflow2StoreWorkflow = ({
|
|||||||
}) => {
|
}) => {
|
||||||
const formatNodes: StoreNodeItemType[] = nodes.map((item) => ({
|
const formatNodes: StoreNodeItemType[] = nodes.map((item) => ({
|
||||||
nodeId: item.data.nodeId,
|
nodeId: item.data.nodeId,
|
||||||
|
parentNodeId: item.data.parentNodeId,
|
||||||
name: item.data.name,
|
name: item.data.name,
|
||||||
intro: item.data.intro,
|
intro: item.data.intro,
|
||||||
avatar: item.data.avatar,
|
avatar: item.data.avatar,
|
||||||
|
Reference in New Issue
Block a user