GroupListItem: When disabledReason provided, do not call onSelectGroup
This commit is contained in:
parent
60a4da57d0
commit
ed95c8959f
1 changed files with 5 additions and 1 deletions
|
@ -68,7 +68,11 @@ export function GroupListItem({
|
||||||
}
|
}
|
||||||
title={<UserText text={group.title} />}
|
title={<UserText text={group.title} />}
|
||||||
subtitle={<UserText text={messageText} />}
|
subtitle={<UserText text={messageText} />}
|
||||||
onClick={() => onSelectGroup(group.id)}
|
onClick={() => {
|
||||||
|
if (!group.disabledReason) {
|
||||||
|
onSelectGroup(group.id);
|
||||||
|
}
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue