(fix/formatters) Display Text showing "nil" when using any unit format
Introduced in padding implementation in 5.19.6
This commit is contained in:
+3
-3
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user