stream header colorblock: Remove unnecessary `find`.

This commit is contained in:
evykassirer 2023-04-25 12:27:03 -07:00 committed by Tim Abbott
parent f9bf688c9e
commit 0e13134be2
2 changed files with 4 additions and 4 deletions

View File

@ -283,8 +283,8 @@ export function start(msg_type, opts) {
}
compose_recipient.compose_recipient_widget.render(opts.stream);
const $stream_header_colorblock = $("#compose_recipient_selection_dropdown").find(
".stream_header_colorblock",
const $stream_header_colorblock = $(
"#compose_recipient_selection_dropdown .stream_header_colorblock",
);
stream_bar.decorate(opts.stream, $stream_header_colorblock);

View File

@ -154,8 +154,8 @@ export function on_compose_select_recipient_update(new_value) {
$("#private_message_recipient").trigger("focus").trigger("select");
}
} else {
const $stream_header_colorblock = $("#compose_recipient_selection_dropdown").find(
".stream_header_colorblock",
const $stream_header_colorblock = $(
"#compose_recipient_selection_dropdown .stream_header_colorblock",
);
stream_bar.decorate(new_value, $stream_header_colorblock);
if (message_type === "private") {