mirror of
https://github.com/casdoor/casdoor.git
synced 2025-09-09 13:32:55 +08:00
Fix JS warnings.
This commit is contained in:
@@ -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"
|
||||||
|
Reference in New Issue
Block a user