Skip to content

Commit

Permalink
Fix slider value display when widget.label is present
Browse files Browse the repository at this point in the history
  • Loading branch information
huchenlei committed Dec 15, 2024
1 parent 6956973 commit e450a7b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/LGraphCanvas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6240,8 +6240,7 @@ export class LGraphCanvas {
ctx.textAlign = "center"
ctx.fillStyle = text_color
ctx.fillText(
w.label ||
w.name +
(w.label || w.name) +
" " +
Number(w.value).toFixed(
w.options.precision != null ? w.options.precision : 3,
Expand Down

0 comments on commit e450a7b

Please sign in to comment.