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
Этот коммит содержится в:
Pablo Andrés Vélez Vidal
2023-04-27 23:05:38 +02:00
коммит произвёл GitHub
родитель d7131030f5
Коммит 13f1d0fdc5

Просмотреть файл

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