muted_topics_ui: Rename mute_topic parameter to fix shadowing bug.

This was broken by 6e6fb47e20 (#24386).

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2023-03-01 18:58:54 -08:00 committed by Tim Abbott
parent 157b5ada90
commit 6eeeb70570
1 changed files with 2 additions and 2 deletions

View File

@ -113,10 +113,10 @@ export function toggle_topic_mute(message) {
} }
} }
export function mute_or_unmute_topic($elt, mute_topic) { export function mute_or_unmute_topic($elt, mute) {
const stream_id = Number.parseInt($elt.attr("data-stream-id"), 10); const stream_id = Number.parseInt($elt.attr("data-stream-id"), 10);
const topic = $elt.attr("data-topic-name"); const topic = $elt.attr("data-topic-name");
if (mute_topic) { if (mute) {
mute_topic(stream_id, topic); mute_topic(stream_id, topic);
} else { } else {
unmute_topic(stream_id, topic); unmute_topic(stream_id, topic);