From be7642976b3e2955da5bbf6e354cec7b48577178 Mon Sep 17 00:00:00 2001 From: orangemug Date: Tue, 25 Feb 2020 09:27:29 +0000 Subject: [PATCH] Can't use object as react-dom key. --- src/components/inputs/InputBlock.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/inputs/InputBlock.jsx b/src/components/inputs/InputBlock.jsx index d0f4065..5e1976e 100644 --- a/src/components/inputs/InputBlock.jsx +++ b/src/components/inputs/InputBlock.jsx @@ -75,8 +75,8 @@ class InputBlock extends React.Component { {errors.length > 0 &&
- {[].concat(this.props.error).map(error => { - return
{error.message}
+ {[].concat(this.props.error).map((error, idx) => { + return
{error.message}
})}
}