Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

message view: Remove unnecessary expectOne check in tippyjs.

m-e-l-u-h-a-n03a3879aa01d
diff --git a/static/js/tippyjs.js b/static/js/tippyjs.js
index 1c8eb875899..c3c109e1f23 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);