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:
sahil839 2021-07-01 13:00:47 +05:30 committed by Steve Howell
parent 6bbfddb6c3
commit ac459b3042
1 changed files with 2 additions and 2 deletions

View File

@ -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);