mirror of https://github.com/zulip/zulip.git
message view: Remove unnecessary expectOne check in tippyjs.
This check was not needded as it is possible to have even zero edit message buttons in cases when a message is fails. So it raises unncesary errors on hovering over icons of those failed messages.
This commit is contained in:
parent
d17a4f64d6
commit
03a3879aa0
|
@ -89,7 +89,7 @@ export function initialize() {
|
|||
// content from it.
|
||||
//
|
||||
// TODO: Change the template structure so logic is unnecessary.
|
||||
const edit_button = elem.find("i.edit_content_button").expectOne();
|
||||
const edit_button = elem.find("i.edit_content_button");
|
||||
content = edit_button.attr("data-tippy-content");
|
||||
}
|
||||
instance.setContent(content);
|
||||
|
|
Loading…
Reference in New Issue