fix: disable remove button if no members selected to be removed

pull/3281/head
Audric Ackermann 2 months ago
parent 49c4b2356e
commit c3a5669ba2
No known key found for this signature in database

@ -264,7 +264,7 @@ export const UpdateGroupMembersDialog = (props: Props) => {
onClick={onClickOK} onClick={onClickOK}
buttonType={SessionButtonType.Simple} buttonType={SessionButtonType.Simple}
buttonColor={SessionButtonColor.Danger} buttonColor={SessionButtonColor.Danger}
disabled={isProcessingUIChange} disabled={isProcessingUIChange || !membersToRemove.length}
dataTestId="session-confirm-ok-button" dataTestId="session-confirm-ok-button"
/> />
)} )}

Loading…
Cancel
Save