mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 10:45:47 +08:00
fix(RoleEditPage): Fix a crash when the sample role domains is null (#1268)
This commit is contained in:
parent
61c2fd5412
commit
262aeba7e2
@ -173,7 +173,7 @@ class RoleEditPage extends React.Component {
|
||||
this.updateRoleField("domains", value);
|
||||
})}>
|
||||
{
|
||||
this.state.role.domains.map((domain, index) => <Option key={index} value={domain}>{domain}</Option>)
|
||||
this.state.role.domains?.map((domain, index) => <Option key={index} value={domain}>{domain}</Option>)
|
||||
}
|
||||
</Select>
|
||||
</Col>
|
||||
|
Loading…
x
Reference in New Issue
Block a user