mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-02 22:37:32 +00:00
[backport core/1.33] On adding output matchType, initialize type (#7263)
Backport of #7161 to `core/1.33` Automatically created by backport workflow. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7263-backport-core-1-33-On-adding-output-matchType-initialize-type-2c46d73d365081d8bb8bc55cf1ef9a6e) by [Unito](https://www.unito.io) Co-authored-by: AustinMroz <austin@comfy.org> Co-authored-by: Alexander Brown <drjkl@comfy.org>
This commit is contained in:
@@ -214,7 +214,9 @@ export const useLitegraphService = () => {
|
||||
*/
|
||||
function addOutputs(node: LGraphNode, outputs: OutputSpec[]) {
|
||||
for (const output of outputs) {
|
||||
const { name, type, is_list } = output
|
||||
const { name, is_list } = output
|
||||
// TODO: Fix the typing at the node spec level
|
||||
const type = output.type === 'COMFY_MATCHTYPE_V3' ? '*' : output.type
|
||||
const shapeOptions = is_list ? { shape: LiteGraph.GRID_SHAPE } : {}
|
||||
const nameKey = `${nodeKey(node)}.outputs.${output.index}.name`
|
||||
const typeKey = `dataTypes.${normalizeI18nKey(type)}`
|
||||
|
||||
Reference in New Issue
Block a user