mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
sonarlint improvements
This commit is contained in:
@@ -19,7 +19,7 @@ const ValidatedTextField: FC<ValidatedTextFieldProps> = ({
|
||||
const errors = fieldErrors && fieldErrors[rest.name];
|
||||
const renderErrors = () =>
|
||||
errors &&
|
||||
errors.map((e, i) => <FormHelperText key={i}>{e.message}</FormHelperText>);
|
||||
errors.map((e) => <FormHelperText key={e.message}>{e.message}</FormHelperText>);
|
||||
return (
|
||||
<>
|
||||
<TextField error={!!errors} {...rest} />
|
||||
|
||||
Reference in New Issue
Block a user