fix(website): Clear cached list of child top bar items (#29223)

This commit is contained in:
Corentin Forler 2025-01-22 16:22:40 +01:00 committed by GitHub
parent 8071d38ad2
commit 53e86379fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -278,6 +278,10 @@ def get_items(parentfield: str) -> list[dict]:
def modify_header_footer_items(items: list):
top_items = items.copy()
# attach child items to top bar
for item in items:
item.child_items = [] # clear cached list
for item in items:
if not item.parent_label:
continue