Skip to content

Commit

Permalink
fix: actions row
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasvinclav committed May 19, 2023
1 parent f343b7e commit 3749c54
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/unfold/templatetags/unfold_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,16 +235,18 @@ def result_list(context: Dict[str, Any], cl: ChangeList) -> Dict[str, Any]:
"""
headers = list(result_headers(cl))
num_sorted_fields = 0

for h in headers:
if h["sortable"] and h["sorted"]:
num_sorted_fields += 1

return {
"cl": cl,
"result_hidden_fields": list(result_hidden_fields(cl)),
"result_headers": headers,
"num_sorted_fields": num_sorted_fields,
"results": list(results(cl)),
"actions_row": context["actions_row"],
"actions_row": context.get("actions_row"),
}


Expand Down

0 comments on commit 3749c54

Please sign in to comment.