fix: exclude irrelevant regional links (#25510)

This commit is contained in:
David Arnold 2024-03-18 14:07:43 +01:00 committed by GitHub
parent 0a81407304
commit 56f1ed4fb3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -156,7 +156,7 @@ class Workspace(Document):
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