Skip to content

Commit

Permalink
✨ fix: bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangchu committed Mar 31, 2024
1 parent c42c9a2 commit 80f44e7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/caseShow/demos/pipeline/multiPipe/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const nodes = [
des: '0秒',
},
{
title: '注册部署平台',
title: '注册部署',
logo: 'https://mdn.alipayobjects.com/huamei_d2ejos/afts/img/A*sko9RoPu-HgAAAAAAAAAAAAADvl6AQ/original',
des: '0秒',
},
Expand Down
2 changes: 1 addition & 1 deletion docs/caseShow/demos/pipeline/multiPipe/pipeNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const PipeNode: FC<NodeProps<PipeNode>> = ({ id, data }) => {
{children.length > 0 && (
<div className={styles.children}>
{children.map((item, index) => (
<div style={{ position: 'relative' }} key={item.title + ''}>
<div style={{ position: 'relative' }} key={item.title + index}>
{item.leftHandle && (
<Handle
type="target"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const StageNode: FC<FlowViewNode> = (node) => {
</div>
<div className="taskNodes">
{taskNodes.map((taskNode: any) => {
return <TaskNode data={taskNode} />;
return <TaskNode data={taskNode} key={taskNode.id} />;
})}
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions docs/caseShow/demos/pipeline/techPipe/pipeNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ const PipeNode: FC<{
{children.length > 0 && (
<div className={styles.children}>
{children.map((item, index) => (
<>
<div className={styles.childrenBox} key={index}>
<div key={item.title + index}>
<div className={styles.childrenBox}>
<Handle
id={`${item.id}-target`}
type="target"
Expand Down Expand Up @@ -70,7 +70,7 @@ const PipeNode: FC<{
}}
/>
</div>
</>
</div>
))}
</div>
)}
Expand Down

0 comments on commit 80f44e7

Please sign in to comment.