From d2771a7a1de7fa6f1bf1a5f7edbdd7409ed0f1fc Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Mon, 2 Dec 2024 19:49:42 -0800 Subject: [PATCH] Always include node title metadata for API export (#1771) --- src/scripts/app.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/scripts/app.ts b/src/scripts/app.ts index e6df7b133..1543b3ce7 100644 --- a/src/scripts/app.ts +++ b/src/scripts/app.ts @@ -2410,16 +2410,14 @@ export class ComfyApp { } } - let node_data = { + const node_data = { inputs, class_type: node.comfyClass } - if (this.ui.settings.getSettingValue('Comfy.DevMode')) { - // Ignored by the backend. - node_data['_meta'] = { - title: node.title - } + // Ignored by the backend. + node_data['_meta'] = { + title: node.title } output[String(node.id)] = node_data