Skip to content

Build your personal knowledge base with Trilium Notes

fix(client): error when pressing template switch help (fixes #570)

Elian Doranb3b7c4ebeacc
diff --git a/src/public/app/widgets/template_switch.js b/src/public/app/widgets/template_switch.js
index 0c2c064caa..16609f6204 100644
--- a/src/public/app/widgets/template_switch.js
+++ b/src/public/app/widgets/template_switch.js
@@ -22,7 +22,6 @@ export default class TemplateSwitchWidget extends SwitchWidget {
this.$switchOffButton.attr("title", t("template_switch.toggle-off-hint"));
this.$helpButton.attr("data-help-page", "template.html").show();
- this.$helpButton.on('click', e => utils.openHelp($(e.target)));
}
async switchOn() {