Revert "fix #46"

This commit is contained in:
VALADI K JAGANATHAN
2023-12-08 18:01:19 +05:30
committed by GitHub
parent 666a25de9a
commit 173778371b
3 changed files with 6 additions and 6 deletions

View File

@@ -77,9 +77,9 @@ const ext = {
name: "efficiency.appearance",
nodeCreated(node) {
const nclass = node.comfyClass;
if (NODE_COLORS.hasOwnProperty(nclass)) {
let colorKey = NODE_COLORS[nclass];
const title = node.getTitle();
if (NODE_COLORS.hasOwnProperty(title)) {
let colorKey = NODE_COLORS[title];
if (colorKey === "random") {
// Check for a valid color key before popping