Skip to content

Commit 6b70412

Browse files
committed
Got rid of warnings
1 parent a2ca311 commit 6b70412

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/ui/components/lineage/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ const getLayoutedElements = (
9797
}
9898
}
9999
}
100+
return initialNodes;
100101
});
101102

102103
return edge;
@@ -130,6 +131,7 @@ export const LayoutFlow: React.FC<any> = (graph: any) => {
130131
eds,
131132
),
132133
),
134+
// eslint-disable-next-line react-hooks/exhaustive-deps
133135
[],
134136
);
135137
const onLayout = useCallback(
@@ -142,6 +144,7 @@ export const LayoutFlow: React.FC<any> = (graph: any) => {
142144
setNodes([...layoutedNodes]);
143145
setEdges([...layoutedEdges]);
144146
},
147+
// eslint-disable-next-line react-hooks/exhaustive-deps
145148
[nodes, edges],
146149
);
147150

0 commit comments

Comments
 (0)