Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
fadb3892
authored
Sep 30, 2024
by
Archer
Committed by
GitHub
Sep 30, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: loop node cannot save parentId (#2845)
parent
7c38d1da
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
packages/global/core/workflow/type/node.d.ts
+1
-0
projects/app/src/pages/app/detail/components/WorkflowComponents/utils.tsx
+1
-0
No files found.
packages/global/core/workflow/type/node.d.ts
View file @
fadb3892
...
@@ -25,6 +25,7 @@ import { ParentIdType } from 'common/parentFolder/type';
...
@@ -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
...
...
projects/app/src/pages/app/detail/components/WorkflowComponents/utils.tsx
View file @
fadb3892
...
@@ -16,6 +16,7 @@ export const uiWorkflow2StoreWorkflow = ({
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment