fix(modules): handle different configs
This commit is contained in:
parent
056daa8a73
commit
7a457bc76e
1 changed files with 3 additions and 3 deletions
|
|
@ -27,9 +27,6 @@ def get_modules_from_app(app):
|
|||
except ImportError:
|
||||
return []
|
||||
|
||||
# Only newly formatted modules that have a category to be shown on desk
|
||||
modules = [m for m in modules if m.get("category")]
|
||||
|
||||
active_domains = frappe.get_active_domains()
|
||||
|
||||
if isinstance(modules, dict):
|
||||
|
|
@ -38,7 +35,10 @@ def get_modules_from_app(app):
|
|||
module['module_name'] = m
|
||||
active_modules_list.append(module)
|
||||
else:
|
||||
# Only newly formatted modules that have a category to be shown on desk
|
||||
modules = [m for m in modules if m.get("category")]
|
||||
active_modules_list = []
|
||||
|
||||
for m in modules:
|
||||
to_add = True
|
||||
module_name = m.get("module_name")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue