Skip to content

Commit

Permalink
[eslint-plugin-react-hooks] Fix set for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
M-Izadmehr committed Sep 22, 2019
1 parent 916a3dc commit 5587b8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/eslint-plugin-react-hooks/src/RulesOfHooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export default {
// If `pathList` includes the current segment then we've found a cycle!
// We need to fill `cyclic` with all segments inside cycle
if (pathList.has(segment.id)) {
const pathArray = [...pathList];
const pathArray = Array.from(pathList);
const cyclicSegments = pathArray.slice(
pathArray.indexOf(segment.id) + 1,
);
Expand Down

0 comments on commit 5587b8c

Please sign in to comment.