fix: avoid Jinja dict items collision in employee card

This commit is contained in:
Anton
2026-04-29 11:34:46 +03:00
parent 26db5832fd
commit af87fa8af3
7 changed files with 12 additions and 9 deletions

View File

@@ -59,7 +59,7 @@ def employee_detail_payload(employee: Employee) -> dict[str, Any]:
"emails": _clean_list(contacts.get("emails")),
"phones": _clean_list(contacts.get("phones")),
"address": contacts.get("address"),
"items": _normalize_contact_items(contacts.get("items")),
"contact_items": _normalize_contact_items(contacts.get("items")),
},
"external_ids": _normalize_external_ids(data.get("external_ids")),
"sections": [_normalize_section(section) for section in _as_list(data.get("sections"))],