mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-15 07:52:35 +08:00
add title to workflow api
This commit is contained in:
parent
db63aa7e53
commit
c280b49e69
@ -1307,11 +1307,9 @@ export class ComfyApp {
|
|||||||
|
|
||||||
let reset_invalid_values = false;
|
let reset_invalid_values = false;
|
||||||
if (!graphData) {
|
if (!graphData) {
|
||||||
if (typeof structuredClone === "undefined")
|
if (typeof structuredClone === "undefined") {
|
||||||
{
|
|
||||||
graphData = JSON.parse(JSON.stringify(defaultGraph));
|
graphData = JSON.parse(JSON.stringify(defaultGraph));
|
||||||
}else
|
} else {
|
||||||
{
|
|
||||||
graphData = structuredClone(defaultGraph);
|
graphData = structuredClone(defaultGraph);
|
||||||
}
|
}
|
||||||
reset_invalid_values = true;
|
reset_invalid_values = true;
|
||||||
@ -1508,6 +1506,7 @@ export class ComfyApp {
|
|||||||
|
|
||||||
output[String(node.id)] = {
|
output[String(node.id)] = {
|
||||||
inputs,
|
inputs,
|
||||||
|
title: node.title,
|
||||||
class_type: node.comfyClass,
|
class_type: node.comfyClass,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user