Skip to content

Commit

Permalink
Fix data-sort-name containing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
missionfloyd committed Sep 27, 2023
1 parent 5ef669d commit a69daae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/ui_extra_networks.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def create_html_for_item(self, item, tabname):
if search_only and shared.opts.extra_networks_hidden_models == "Never":
return ""

sort_keys = " ".join([html.escape(f'data-sort-{k}={v}') for k, v in item.get("sort_keys", {}).items()]).strip()
sort_keys = " ".join([f'data-sort-{k}="{html.escape(str(v))}"' for k, v in item.get("sort_keys", {}).items()]).strip()

args = {
"background_image": background_image,
Expand Down

0 comments on commit a69daae

Please sign in to comment.