MM-56759 Fix crash caused by joinPrivateChannelPrompt (#26123)
When an admin clicks on a link to a private channel they're not a member of, this crashed the app by incorrectly trying to render a Channel object instead of its name
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
2e40ede7dd
Коммит
f92d08e991
@@ -1397,7 +1397,7 @@ export async function handleFormattedTextClick(e: React.MouseEvent, currentRelat
|
||||
}
|
||||
}
|
||||
if (!member) {
|
||||
const {data} = await store.dispatch(joinPrivateChannelPrompt(team, channel, false));
|
||||
const {data} = await store.dispatch(joinPrivateChannelPrompt(team, channel.display_name, false));
|
||||
if (data.join) {
|
||||
let error = false;
|
||||
if (!getTeamMemberships(state)[team.id]) {
|
||||
|
||||
Ссылка в новой задаче
Block a user