Prepare Autogrow's expand_schema_for_dynamic to work with upcoming frontend changes
Some checks are pending
Python Linting / Run Ruff (push) Waiting to run
Python Linting / Run Pylint (push) Waiting to run

This commit is contained in:
Jedrzej Kosinski 2025-12-03 19:00:06 -08:00
parent 7637be3c16
commit 2b6106d57b

View File

@ -1004,9 +1004,9 @@ class Autogrow(ComfyTypeI):
curr_prefix = handle_prefix(curr_prefix, self.id) curr_prefix = handle_prefix(curr_prefix, self.id)
# need to remove self from expected inputs dictionary; replaced by template inputs in frontend # need to remove self from expected inputs dictionary; replaced by template inputs in frontend
for inner_dict in d.values(): for inner_dict in d.values():
# TODO: once frontend is ready, replace self.id with finalize_prefix(curr_prefix, self.id) finalized_id = finalize_prefix(curr_prefix, self.id)
if self.id in inner_dict: if finalized_id in inner_dict:
del inner_dict[self.id] del inner_dict[finalized_id]
self.template.expand_schema_for_dynamic(d, live_inputs, curr_prefix) self.template.expand_schema_for_dynamic(d, live_inputs, curr_prefix)
@comfytype(io_type="COMFY_DYNAMICCOMBO_V3") @comfytype(io_type="COMFY_DYNAMICCOMBO_V3")