From 03a3879aa01d1a88da1efb24ca96d40396abf715 Mon Sep 17 00:00:00 2001 From: m-e-l-u-h-a-n Date: Fri, 21 May 2021 01:58:16 +0530 Subject: [PATCH] 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. --- static/js/tippyjs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/tippyjs.js b/static/js/tippyjs.js index 1c8eb87589..c3c109e1f2 100644 --- a/static/js/tippyjs.js +++ b/static/js/tippyjs.js @@ -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);