fix: if no apps installed redirect to desk
This commit is contained in:
parent
d421866a80
commit
5097a454cd
1 changed files with 4 additions and 0 deletions
|
|
@ -19,6 +19,10 @@ def get_context():
|
|||
|
||||
all_apps = get_apps()
|
||||
|
||||
if len(all_apps) == 0:
|
||||
frappe.local.flags.redirect_location = "/app"
|
||||
raise frappe.Redirect
|
||||
|
||||
for app in all_apps:
|
||||
app["is_default"] = True if app.get("name") == default_app else False
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue