fix: connected error (#318)

This commit is contained in:
Archer
2023-09-19 07:54:50 +08:00
committed by GitHub
parent 35f4deca76
commit 0a4a1def1e
8 changed files with 61 additions and 30 deletions

View File

@@ -238,7 +238,7 @@ const AppEdit = ({ app, onCloseSettings }: Props) => {
position: item.position,
inputs: item.data.inputs.map((item) => ({
...item,
connected: item.type !== FlowInputItemTypeEnum.target
connected: item.connected ?? item.type !== FlowInputItemTypeEnum.target
})),
outputs: item.data.outputs.map((item) => ({
...item,