diff --git a/wiki/public/js/render_wiki.js b/wiki/public/js/render_wiki.js index afe76b45..839da0e5 100644 --- a/wiki/public/js/render_wiki.js +++ b/wiki/public/js/render_wiki.js @@ -210,7 +210,10 @@ window.RenderWiki = class RenderWiki extends Wiki { sidebar_items.each(function (index) { if ($(this).attr("class")) { - const hasActiveClass = $(this).attr("class").split(/\s+/).includes("active"); + const hasActiveClass = $(this) + .attr("class") + .split(/\s+/) + .includes("active"); if (hasActiveClass) { current_index = index; } diff --git a/wiki/wiki/doctype/wiki_page_patch/wiki_page_patch.js b/wiki/wiki/doctype/wiki_page_patch/wiki_page_patch.js index b3f1df8b..b5bd709c 100644 --- a/wiki/wiki/doctype/wiki_page_patch/wiki_page_patch.js +++ b/wiki/wiki/doctype/wiki_page_patch/wiki_page_patch.js @@ -31,7 +31,7 @@ frappe.ui.form.on("Wiki Page Patch", { background-color: #dcfce7; text-decoration: none; } - ` + `, ); } },