mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-05-06 23:32:30 +08:00
fix: remove dead code and redundant top-level keys from MultiCombo serialization
Amp-Thread-ID: https://ampcode.com/threads/T-019dad04-a07a-724b-af4d-fbfe98654fdd Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
parent
e2d1879cc0
commit
3db5aa001a
@ -413,9 +413,7 @@ class MultiCombo(ComfyTypeI):
|
|||||||
"multi_select": prune_dict({
|
"multi_select": prune_dict({
|
||||||
"placeholder": self.placeholder,
|
"placeholder": self.placeholder,
|
||||||
"chip": self.chip,
|
"chip": self.chip,
|
||||||
}) if self.multiselect else None,
|
}),
|
||||||
"placeholder": self.placeholder,
|
|
||||||
"chip": self.chip,
|
|
||||||
})
|
})
|
||||||
|
|
||||||
@comfytype(io_type="IMAGE")
|
@comfytype(io_type="IMAGE")
|
||||||
|
|||||||
@ -31,5 +31,3 @@ def test_multicombo_serializes_multi_select_with_placeholder_and_chip():
|
|||||||
"placeholder": "Select providers",
|
"placeholder": "Select providers",
|
||||||
"chip": True,
|
"chip": True,
|
||||||
}
|
}
|
||||||
assert serialized["placeholder"] == "Select providers"
|
|
||||||
assert serialized["chip"] is True
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user