mirror of https://github.com/casbin/casnode.git
Fix remaining warnings
This commit is contained in:
parent
9ac71d98a3
commit
09b8e6fd44
|
@ -319,8 +319,8 @@ class AdminTranslation extends React.Component {
|
|||
<div className="problem" onClick={() => this.clearErrorMessage()}>
|
||||
{i18next.t("error:Please resolve the following issues before submitting")}
|
||||
<ul>
|
||||
{problems.map((problem) => {
|
||||
return <li>{problem}</li>;
|
||||
{problems.map((problem, i) => {
|
||||
return <li key={i}>{problem}</li>;
|
||||
})}
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
@ -162,7 +162,7 @@ class NewNodeTopicBox extends React.Component {
|
|||
{i18next.t("error:Please resolve the following issues before creating a new topic")}
|
||||
<ul>
|
||||
{problems.map((problem, i) => {
|
||||
return <li>{problem}</li>;
|
||||
return <li key={i}>{problem}</li>;
|
||||
})}
|
||||
{this.state.message !== "" ? <li>{i18next.t(`error:${this.state.message}`)}</li> : null}
|
||||
</ul>
|
||||
|
|
Loading…
Reference in New Issue