diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-01-29 07:41:36 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-29 07:41:36 +0000 |
commit | e8efd2ec4776ea4adc9ea69297d5bab852074499 (patch) | |
tree | dd721b58c7395ab9979036d9bed6f198cfb4cce3 | |
parent | f6b7768f84a335d351ba8c0d4c34d78e59272339 (diff) | |
parent | 659d602dce42608a664642021ea2441da045d189 (diff) | |
download | stable-diffusion-webui-gfx803-e8efd2ec4776ea4adc9ea69297d5bab852074499.tar.gz stable-diffusion-webui-gfx803-e8efd2ec4776ea4adc9ea69297d5bab852074499.tar.bz2 stable-diffusion-webui-gfx803-e8efd2ec4776ea4adc9ea69297d5bab852074499.zip |
Merge pull request #7353 from EllangoK/preview-fix
Fixes thumbnail cards not loading the preview image
-rw-r--r-- | modules/ui_extra_networks_checkpoints.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/ui_extra_networks_checkpoints.py b/modules/ui_extra_networks_checkpoints.py index 360579b0..a6799171 100644 --- a/modules/ui_extra_networks_checkpoints.py +++ b/modules/ui_extra_networks_checkpoints.py @@ -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]
|