Skip to content

Commit

Permalink
Merge pull request #391 from TangYanxin/main
Browse files Browse the repository at this point in the history
Solve the problem that there are two duplicate badges on the node
  • Loading branch information
shadowcz007 authored Jan 25, 2025
2 parents 67c974c + c9b5baf commit d835aff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions web/javascript/ui_mixlab.js
Original file line number Diff line number Diff line change
Expand Up @@ -2171,6 +2171,10 @@ app.registerExtension({

fetch('manager/badge_mode').then(r => {
if (r.status === 404) {
// 已有ComfyUI自带的badge
if(node.badges?.[0]?.()){
return
}
// 右上角的badge是否已经绘制
if (!node.badge_enabled) {
if (!node.getNickname) {
Expand Down

0 comments on commit d835aff

Please sign in to comment.