From 519884653e3de4498c77c47069da4fe0421a3277 Mon Sep 17 00:00:00 2001 From: Alexander Sokol Date: Fri, 28 Mar 2025 14:03:27 +0200 Subject: [PATCH] fix typo --- scripts/mo/ui_civitai_import.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/mo/ui_civitai_import.py b/scripts/mo/ui_civitai_import.py index 200c8aa..770c88a 100644 --- a/scripts/mo/ui_civitai_import.py +++ b/scripts/mo/ui_civitai_import.py @@ -444,9 +444,7 @@ def _on_name_changed(name, import_url, use_name_as_filename): record_names = ', '.join(record.name for record in records_with_same_dest) warnings_list.append(f'Records with the same download filename: {record_names}') - warning_message = '\n'.join(warnings_list) - - return gr.HTML.update(value=alert_warning(warnings_listgi), visible=bool(warning_message)) + return gr.HTML.update(value=alert_warning(warnings_list), visible=bool(warnings_list)) def civitai_import_ui_block():