Skip to content

Commit

Permalink
chore: corrected variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
shariquerik committed Aug 16, 2024
1 parent c4a8d11 commit 903ffd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frappe/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def get_apps():


def get_route(app_name):
links = frappe.get_hooks("add_to_apps_screen", app_name=app_name)
app = next((link for link in links if link.get("name") == app_name), None)
apps = frappe.get_hooks("add_to_apps_screen", app_name=app_name)
app = next((app for app in apps if app.get("name") == app_name), None)
return app.get("route") if app and app.get("route") else "/apps"


Expand Down

0 comments on commit 903ffd8

Please sign in to comment.