fix: correct regex in sidebar module app filtering (#38131)

Co-authored-by: petnd <58605206+petnd@users.noreply.github.com>
This commit is contained in:
Aarol D'Souza 2026-04-13 11:53:47 +05:30 committed by GitHub
parent 11a9eba342
commit 620c44863c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -661,7 +661,7 @@ frappe.ui.Sidebar = class Sidebar {
if (module) {
sidebars = this.filter_sidebars_from_app(
sidebars,
frappe.boot.module_app[module.toLowerCase()]
frappe.boot.module_app[module.toLowerCase().replace(/[ -]/g, "_")]
);
}
if (sidebars.length == 1) {