Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
stream_popover: Fix message topic edit without permission to edit channel.
Sahil Batrae0bcf725212e
diff --git a/web/src/stream_popover.js b/web/src/stream_popover.jsindex 5dec8e4ce47..993357ffd8d 100644--- a/web/src/stream_popover.js+++ b/web/src/stream_popover.js@@ -456,7 +456,9 @@ export async function build_move_topic_to_stream_popover(send_notification_to_new_thread = send_notification_to_new_thread === "on";send_notification_to_old_thread = send_notification_to_old_thread === "on";current_stream_id = Number.parseInt(current_stream_id, 10);- select_stream_id = Number.parseInt(select_stream_id, 10);+ if (select_stream_id !== undefined) {+ select_stream_id = Number.parseInt(select_stream_id, 10);+ }if (new_topic_name !== undefined) {// new_topic_name can be undefined when the new topic input is disabled when