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.

linkifier: Remove unnecessary on-success update on deleting linkifier.

akshatdalton3015837e6e32
diff --git a/static/js/settings_linkifiers.js b/static/js/settings_linkifiers.js
index ba403c8bf54..e903dd8d9ea 100644
--- a/static/js/settings_linkifiers.js
+++ b/static/js/settings_linkifiers.js
@@ -139,10 +139,8 @@ export function build_page() {
error(xhr) {
ui_report.generic_row_button_error(xhr, btn);
},
- success() {
- const row = btn.parents("tr");
- row.remove();
- },
+ // There is no need for an on-success action here since the row is removed by
+ // the `realm_linkifiers` event handler which builds the linkifier list again.
});
});