1
0
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:
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) => {
// option can be null
// option can be `null`, `[{...}]`, or `[]`
this.setState({
ownerEmail: option ? option.email : ''
ownerEmail: option && option.length ? option[0].email : ''
});
};