Skip to content

Commit

Permalink
Fix JS warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
nomeguy committed Jun 21, 2022
1 parent 2c57bec commit 0075b7a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions web/src/UserEditPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,15 @@ class UserEditPage extends React.Component {
</div>
} style={(Setting.isMobile())? {margin: '5px'}:{}} type="inner">
{
this.state.application?.organizationObj.accountItems?.map(accountItem => this.renderAccountItem(accountItem))
this.state.application?.organizationObj.accountItems?.map(accountItem => {
return (
<React.Fragment key={accountItem.name}>
{
this.renderAccountItem(accountItem)
}
</React.Fragment>
)
})
}
</Card>
)
Expand Down Expand Up @@ -571,7 +579,7 @@ class UserEditPage extends React.Component {
return (
<div>
{
this.state.loading ? <Spin loading={this.state.loading} size="large" /> : (
this.state.loading ? <Spin size="large" /> : (
this.state.user !== null ? this.renderUser() :
<Result
status="404"
Expand Down

0 comments on commit 0075b7a

Please sign in to comment.