Skip to content

Commit e124aeb

Browse files
committed
ignore lint error in graph
1 parent 611d4cd commit e124aeb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/Graphs/useGraph.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ export function useGraph(colorBy: ColorBy, onYamlClick: (item: ManagedResourceIt
109109

110110
useEffect(() => {
111111
if (!treeData.length) {
112+
// eslint-disable-next-line react-hooks/set-state-in-effect
112113
setNodes([]);
113114
setEdges([]);
114115
return;

0 commit comments

Comments
 (0)