1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-15 14:49:09 +00:00

[system admin - groups] fixup for the 'Owner' value in creating new groups (#6561)

This commit is contained in:
llj
2024-08-15 16:17:38 +08:00
committed by GitHub
parent ab0fe3041e
commit 2d2a8458a2

View File

@@ -38,9 +38,9 @@ class SysAdminCreateGroupDialog extends React.Component {
}; };
handleSelectChange = (option) => { handleSelectChange = (option) => {
// option can be null // option can be `null`, `[{...}]`, or `[]`
this.setState({ this.setState({
ownerEmail: option ? option.email : '' ownerEmail: option && option.length ? option[0].email : ''
}); });
}; };