mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-01-21 13:50:12 +08:00
Merge pull request #12424 from AUTOMATIC1111/extra-network-metadata-inherit-old-description
extra network metadata inherit old description
This commit is contained in:
commit
358f55db6a
@ -36,8 +36,8 @@ class UserMetadataEditor:
|
|||||||
item = self.page.items.get(name, {})
|
item = self.page.items.get(name, {})
|
||||||
|
|
||||||
user_metadata = item.get('user_metadata', None)
|
user_metadata = item.get('user_metadata', None)
|
||||||
if user_metadata is None:
|
if not user_metadata:
|
||||||
user_metadata = {}
|
user_metadata = {'description': item.get('description', '')}
|
||||||
item['user_metadata'] = user_metadata
|
item['user_metadata'] = user_metadata
|
||||||
|
|
||||||
return user_metadata
|
return user_metadata
|
||||||
|
Loading…
Reference in New Issue
Block a user