The ShowText node does not display the first value when it is falsy (0, 0.0, false, "").
Root Cause
In web/js/showText.js, the populate function removes the first element if it is falsy:
|
const v = [...text]; |
|
if (!v[0]) { |
|
v.shift(); |
|
} |
This is intended to drop a spurious null/undefined leading element, but !v[0] on line 24 also matches legitimate falsy values like 0 or 0.0.
Suggested Fix:
In web/js/showText.js, line 23, replace:
if (!v[0]) {
with:
if (v[0] == null) {
The
ShowTextnode does not display the first value when it is falsy (0,0.0,false,"").Root Cause
In
web/js/showText.js, thepopulatefunction removes the first element if it is falsy:ComfyUI-Custom-Scripts/web/js/showText.js
Lines 22 to 25 in 609f3af
This is intended to drop a spurious null/undefined leading element, but !v[0] on line 24 also matches legitimate falsy values like 0 or 0.0.
Suggested Fix:
In web/js/showText.js, line 23, replace:
if (!v[0]) {
with:
if (v[0] == null) {