fix: if no apps installed redirect to desk

This commit is contained in:
Shariq Ansari 2024-08-12 17:35:55 +05:30
parent d421866a80
commit 5097a454cd

View file

@ -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