mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-14 06:11:16 +00:00
[system admin - groups] fixup for the 'Owner' value in creating new groups (#6561)
This commit is contained in:
@@ -38,9 +38,9 @@ class SysAdminCreateGroupDialog extends React.Component {
|
||||
};
|
||||
|
||||
handleSelectChange = (option) => {
|
||||
// option can be null
|
||||
// option can be `null`, `[{...}]`, or `[]`
|
||||
this.setState({
|
||||
ownerEmail: option ? option.email : ''
|
||||
ownerEmail: option && option.length ? option[0].email : ''
|
||||
});
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user