fix: correct regex in sidebar module app filtering (#38131)
Co-authored-by: petnd <58605206+petnd@users.noreply.github.com>
This commit is contained in:
parent
11a9eba342
commit
620c44863c
1 changed files with 1 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue