Skip to content

Commit 8804427

Browse files
committed
Remove useless index argument
1 parent aaa3a52 commit 8804427

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/selectors/nodes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,4 @@ export const addNode = node => ({
9090
});
9191

9292
export const getRowIndexFromId = (flattenedTree, id) =>
93-
flattenedTree.findIndex((item, index) => item.id === id);
93+
flattenedTree.findIndex((node) => node.id === id);

0 commit comments

Comments
 (0)