mirror of https://github.com/zulip/zulip.git
message_edit: Fix the name of a property being accessed wrongly.
The `stream_id` property of a stream object was being wrongly accessed as `id`, which does not exist, in the function `get_available_streams_for_moving_messages()` This led to the current stream not being rendered in the dropdown list as expected in the `Move Topic` modal when the user does not have the permission to post in the current stream.
This commit is contained in:
parent
af54293ff8
commit
571f6b1e91
|
@ -413,7 +413,7 @@ export function get_available_streams_for_moving_messages(current_stream_id) {
|
||||||
return stream_data
|
return stream_data
|
||||||
.subscribed_subs()
|
.subscribed_subs()
|
||||||
.filter((stream) => {
|
.filter((stream) => {
|
||||||
if (stream.id === current_stream_id) {
|
if (stream.stream_id === current_stream_id) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return stream_data.can_post_messages_in_stream(stream);
|
return stream_data.can_post_messages_in_stream(stream);
|
||||||
|
|
Loading…
Reference in New Issue