Fix JS warnings.

This commit is contained in:
Gucheng Wang
2022-06-21 15:26:58 +08:00
parent 2c57bece39
commit 0075b7af52

View File

@@ -522,7 +522,15 @@ class UserEditPage extends React.Component {
</div> </div>
} style={(Setting.isMobile())? {margin: '5px'}:{}} type="inner"> } 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> </Card>
) )
@@ -571,7 +579,7 @@ class UserEditPage extends React.Component {
return ( return (
<div> <div>
{ {
this.state.loading ? <Spin loading={this.state.loading} size="large" /> : ( this.state.loading ? <Spin size="large" /> : (
this.state.user !== null ? this.renderUser() : this.state.user !== null ? this.renderUser() :
<Result <Result
status="404" status="404"