Merge pull request #7353 from EllangoK/preview-fix

Fixes thumbnail cards not loading the preview image
This commit is contained in:
AUTOMATIC1111 2023-01-29 10:41:36 +03:00 committed by GitHub
commit e8efd2ec47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,5 +34,5 @@ class ExtraNetworksPageCheckpoints(ui_extra_networks.ExtraNetworksPage):
}
def allowed_directories_for_previews(self):
return [shared.cmd_opts.ckpt_dir, sd_models.model_path]
return [v for v in [shared.cmd_opts.ckpt_dir, sd_models.model_path] if v is not None]