Skip to content

Commit a69daae

Browse files
committed
Fix data-sort-name containing spaces
1 parent 5ef669d commit a69daae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/ui_extra_networks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def create_html_for_item(self, item, tabname):
235235
if search_only and shared.opts.extra_networks_hidden_models == "Never":
236236
return ""
237237

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

240240
args = {
241241
"background_image": background_image,

0 commit comments

Comments
 (0)