mirror of https://github.com/zulip/zulip.git
stream_settings: Fix error on stream setting update when compose closed.
Previously, when stream settings were updated, without opening the
compose box, assertion error were thrown.
This error was a result of a regression in compose_recipient, due to an
extra assert statement added during its typescript migration in
25ff0d4418
.
This is fixed by removing the statement.
This commit is contained in:
parent
dd91157993
commit
0be93b8519
|
@ -226,7 +226,6 @@ export function on_compose_select_recipient_update(): void {
|
||||||
if (curr_message_type === "stream") {
|
if (curr_message_type === "stream") {
|
||||||
// Update stream name in the recipient box.
|
// Update stream name in the recipient box.
|
||||||
const stream_id = compose_state.stream_id();
|
const stream_id = compose_state.stream_id();
|
||||||
assert(stream_id !== undefined);
|
|
||||||
update_recipient_label(stream_id);
|
update_recipient_label(stream_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue