From 5f50e15ec53515403a576addd7e29ef9e3a96859 Mon Sep 17 00:00:00 2001 From: Aman Agrawal Date: Wed, 3 Jun 2020 19:59:07 +0530 Subject: [PATCH] stream_popover: Remove whitespace around topic name. --- static/js/stream_popover.js | 1 + 1 file changed, 1 insertion(+) diff --git a/static/js/stream_popover.js b/static/js/stream_popover.js index 3f344849bc..1454092496 100644 --- a/static/js/stream_popover.js +++ b/static/js/stream_popover.js @@ -552,6 +552,7 @@ exports.register_topic_handlers = function () { const {old_topic_name, select_stream_id} = params; let {current_stream_id, new_topic_name} = params; + new_topic_name = new_topic_name.trim(); current_stream_id = parseInt(current_stream_id, 10); // The API endpoint for editing messages to change their