mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
fix: replace empty name for admin in project access
This commit is contained in:
parent
6d2ea5ebc6
commit
e5c5250961
@ -147,8 +147,9 @@ export const ProjectAccessAddUser = ({ roles }: IProjectAccessAddUserProps) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const getOptionLabel = (option: IProjectAccessUser) => {
|
const getOptionLabel = (option: IProjectAccessUser) => {
|
||||||
|
console.log(option);
|
||||||
if (option) {
|
if (option) {
|
||||||
return `${option.name || '(Empty name)'} <${
|
return `${option.name || option.username || '(Empty name)'} <${
|
||||||
option.email || option.username
|
option.email || option.username
|
||||||
}>`;
|
}>`;
|
||||||
} else return '';
|
} else return '';
|
||||||
|
Loading…
Reference in New Issue
Block a user