mirror of
https://github.com/casdoor/casdoor.git
synced 2025-09-09 15:52:55 +08:00
fix(RoleEditPage): Fix a crash when the sample role domains is null (#1268)
This commit is contained in:
@@ -173,7 +173,7 @@ class RoleEditPage extends React.Component {
|
|||||||
this.updateRoleField("domains", value);
|
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>
|
</Select>
|
||||||
</Col>
|
</Col>
|
||||||
|
Reference in New Issue
Block a user