stream_list: Use more specific classname for click handler.

This avoids this code being fragile with any future refactoring.
This commit is contained in:
evykassirer 2024-11-08 13:09:47 -08:00 committed by Tim Abbott
parent e734694229
commit f29f1299aa
1 changed files with 1 additions and 1 deletions

View File

@ -860,7 +860,7 @@ export function set_event_handlers({
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();
const stream_id = stream_id_for_elt($(e.target).parents("li")); const stream_id = stream_id_for_elt($(e.target).parents("li.narrow-filter"));
const current_narrow_stream_id = narrow_state.stream_id(); const current_narrow_stream_id = narrow_state.stream_id();
const current_topic = narrow_state.topic(); const current_topic = narrow_state.topic();