fix: broken preview when using both enable preview and override_lora_name

This commit is contained in:
Dijkstra
2024-03-14 23:23:35 +01:00
parent 517b8a8a12
commit f3815b7ce4
2 changed files with 8 additions and 2 deletions

View File

@@ -31,6 +31,8 @@ def copy_preview_to_temp(file_name):
lora_less = "/".join(file_name.split("/")[1:])
file_path = folder_paths.get_full_path("loras", lora_less)
if file_path is None:
return None, None
temp_path = folder_paths.get_temp_directory()
preview_path = os.path.join(temp_path, "lora_preview")