MM-52499 - fix error while removing all channels in guest invite form (#23173)

* MM-52499 - fix error while removing all channels in guest invite form

* add guard against channels being null
This commit is contained in:
Pablo Andrés Vélez Vidal 2023-04-27 23:05:38 +02:00 committed by GitHub
parent d7131030f5
commit 13f1d0fdc5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -266,7 +266,7 @@ export class InvitationModal extends React.PureComponent<Props, State> {
...state.invite,
inviteChannels: {
...state.invite.inviteChannels,
channels,
channels: channels ?? [],
},
},
}));