Skip to content

Commit e478b17

Browse files
Only add _meta title to api prompt when dev mode is enabled in UI.
1 parent f15dce7 commit e478b17

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

web/scripts/app.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1781,14 +1781,19 @@ export class ComfyApp {
17811781
}
17821782
}
17831783

1784-
output[String(node.id)] = {
1784+
let node_data = {
17851785
inputs,
17861786
class_type: node.comfyClass,
1787+
};
1788+
1789+
if (this.ui.settings.getSettingValue("Comfy.DevMode")) {
17871790
// Ignored by the backend.
1788-
"_meta": {
1791+
node_data["_meta"] = {
17891792
title: node.title,
1790-
},
1791-
};
1793+
}
1794+
}
1795+
1796+
output[String(node.id)] = node_data;
17921797
}
17931798
}
17941799

0 commit comments

Comments
 (0)