fix(website): Clear cached list of child top bar items (#29223)
This commit is contained in:
parent
8071d38ad2
commit
53e86379fe
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue