fix the remove icon visible in Dropdown other than owner (#8291)

This commit is contained in:
Ashish Gupta 2022-10-20 23:47:16 +05:30 committed by GitHub
parent 45adf285ba
commit fe77f710a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -110,7 +110,7 @@ const DropDownList: FunctionComponent<DropDownListProp> = ({
};
const removeOwnerButton = (item: DropDownListItem) => {
return !isNil(value) && item.value === value ? (
return !isNil(value) && item.value === value && removeOwner ? (
<Tooltip title="Remove owner">
<button
className="cursor-pointer"