js: Fix type issue with FormatJS rich text elements.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2022-11-03 12:14:03 -07:00
committed by Tim Abbott
parent b582d5886c
commit 3a718d786f
10 changed files with 54 additions and 22 deletions

View File

@@ -392,7 +392,8 @@ export function validation_error(error_type, stream_name) {
},
{
stream_name,
"z-link": (content_html) => `<a href='#streams/all'>${content_html}</a>`,
"z-link": (content_html) =>
`<a href='#streams/all'>${content_html.join("")}</a>`,
},
);
compose_error.show(response, $("#stream_message_recipient_stream"));