stream_create: Fix crash on stream creation error.

Commit a9ca5f603b (#15863) incorrectly
translated this; stream_name_error is not a jQuery object.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
(cherry picked from commit f2d0ae3255)
This commit is contained in:
Anders Kaseorg
2022-05-31 17:15:29 -07:00
committed by Tim Abbott
parent 28a8655a9d
commit 09678193c9

View File

@@ -254,7 +254,7 @@ function create_stream() {
// error text directly rather than turning it into
// "Error creating stream"?
stream_name_error.report_already_exists(stream_name);
stream_name_error.trigger("select");
stream_name_error.select();
}
ui_report.error(