(fix/formatters) Display Text showing "nil" when using any unit format

Introduced in padding implementation in 5.19.6
This commit is contained in:
NoM0Re
2025-04-07 18:03:05 +02:00
parent a595ef2a4a
commit 003902fc6a
+3 -3
View File
@@ -744,7 +744,7 @@ Private.format_types = {
if realm == "never" then
nameFunc = function(unit)
return unit and WeakAuras.UnitName(unit)
return unit and WeakAuras.UnitName(unit) or ""
end
elseif realm == "star" then
nameFunc = function(unit)
@@ -755,7 +755,7 @@ Private.format_types = {
if realm then
return name .. "*"
end
return name
return name or ""
end
elseif realm == "differentServer" then
nameFunc = function(unit)
@@ -766,7 +766,7 @@ Private.format_types = {
if realm then
return name .. "-" .. realm
end
return name
return name or ""
end
elseif realm == "always" then
nameFunc = function(unit)