add title to workflow api

This commit is contained in:
flipnism 2023-09-18 05:27:50 +07:00
parent db63aa7e53
commit c280b49e69

View File

@ -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,
}; };
} }