From c2ab01aad7424f400436e16f1bdee0ed0722baef Mon Sep 17 00:00:00 2001
From: Eugene Fenyuk <45651092+software-eugeneer@users.noreply.github.com>
Date: Fri, 26 Feb 2021 09:49:05 +0300
Subject: [PATCH] Fix react/no-array-index-key
Replace array index with rule.nodeName @ Condition.js
---
src/Condition.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/Condition.js b/src/Condition.js
index 17d4830..fd39a32 100644
--- a/src/Condition.js
+++ b/src/Condition.js
@@ -86,10 +86,10 @@ class Condition extends React.Component {
.state
.data
.rules
- .map((rule, index) => {
+ .map((rule) => {
if (rule.field) {
return ();
} else {
return (