Skip to content

Commit

Permalink
fix: exclude irrelevant regional links (#25510) (#25512)
Browse files Browse the repository at this point in the history
(cherry picked from commit 56f1ed4)

Co-authored-by: David Arnold <dgx.arnold@gmail.com>
  • Loading branch information
mergify[bot] and blaggacao committed Mar 18, 2024
1 parent fe3244c commit 9fe8b6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frappe/desk/doctype/workspace/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def get_link_groups(self):

current_card = link
card_links = []
else:
elif not link.get("only_for") or link.get("only_for") == frappe.get_system_settings("country"):
card_links.append(link)

current_card["links"] = card_links
Expand Down

0 comments on commit 9fe8b6a

Please sign in to comment.