Move the description into the relevant branch
This commit is contained in:
parent
d6821ecb99
commit
275bd33a6c
1 changed files with 3 additions and 3 deletions
|
@ -202,10 +202,10 @@ function _showAnyInviteErrors(addrs, room, inviter) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// React 16 doesn't let us use `errorList.join(<br />)` anymore, so this is our solution
|
|
||||||
let description = <div>{errorList.map(e => <div key={e}>{e}</div>)}</div>;
|
|
||||||
|
|
||||||
if (errorList.length > 0) {
|
if (errorList.length > 0) {
|
||||||
|
// React 16 doesn't let us use `errorList.join(<br />)` anymore, so this is our solution
|
||||||
|
let description = <div>{errorList.map(e => <div key={e}>{e}</div>)}</div>;
|
||||||
|
|
||||||
const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
|
const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog");
|
||||||
Modal.createTrackedDialog('Failed to invite the following users to the room', '', ErrorDialog, {
|
Modal.createTrackedDialog('Failed to invite the following users to the room', '', ErrorDialog, {
|
||||||
title: _t("Failed to invite the following users to the %(roomName)s room:", {roomName: room.name}),
|
title: _t("Failed to invite the following users to the %(roomName)s room:", {roomName: room.name}),
|
||||||
|
|
Loading…
Reference in a new issue