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:
m-e-l-u-h-a-n 2021-05-21 01:58:16 +05:30 committed by Tim Abbott
parent d17a4f64d6
commit 03a3879aa0
1 changed files with 1 additions and 1 deletions

View File

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