mirror of https://github.com/zulip/zulip.git
muting_ui: Fix bug with same name of function parameter and a file.
The parameter passed to 'handle_topic_updates' is 'muted_topics'
and there is also a javascript file with same name.
So 'muted_topics.get_muted_topics' gives error, and this commit
fixes this by changing the parametr name to 'muted_topics_list'.
This was introduced in 5f74e78bee
.
This commit is contained in:
parent
6bbfddb6c3
commit
ac459b3042
|
@ -45,9 +45,9 @@ export function rerender_for_muted_topic(old_muted_topics) {
|
|||
}
|
||||
}
|
||||
|
||||
export function handle_topic_updates(muted_topics) {
|
||||
export function handle_topic_updates(muted_topics_list) {
|
||||
const old_muted_topics = muted_topics.get_muted_topics();
|
||||
muted_topics.set_muted_topics(muted_topics);
|
||||
muted_topics.set_muted_topics(muted_topics_list);
|
||||
stream_popover.hide_topic_popover();
|
||||
unread_ui.update_unread_counts();
|
||||
rerender_for_muted_topic(old_muted_topics);
|
||||
|
|
Loading…
Reference in New Issue