Web:Components:Selector: fix role and selectedItems
This commit is contained in:
parent
502225f87b
commit
bbb0049bfe
@ -317,6 +317,8 @@ Selector.defaultProps = {
|
||||
withSelectAll: false,
|
||||
withAccessRights: false,
|
||||
withCancelButton: false,
|
||||
|
||||
selectedItems: [],
|
||||
};
|
||||
|
||||
export default Selector;
|
||||
|
@ -79,7 +79,9 @@ const Item = React.memo(({ index, style, data }) => {
|
||||
|
||||
const item = items[index];
|
||||
|
||||
const { label, avatar, icon, isSelected } = item;
|
||||
const { label, avatar, icon, role, isSelected } = item;
|
||||
|
||||
const currentRole = role ? role : "user";
|
||||
|
||||
const isLogo = !!icon;
|
||||
|
||||
@ -102,7 +104,7 @@ const Item = React.memo(({ index, style, data }) => {
|
||||
<Avatar
|
||||
className="user-avatar"
|
||||
source={avatar}
|
||||
role={"user"}
|
||||
role={currentRole}
|
||||
size={"min"}
|
||||
/>
|
||||
) : (
|
||||
|
Loading…
Reference in New Issue
Block a user