(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
|
if realm == "never" then
|
||||||
nameFunc = function(unit)
|
nameFunc = function(unit)
|
||||||
return unit and WeakAuras.UnitName(unit)
|
return unit and WeakAuras.UnitName(unit) or ""
|
||||||
end
|
end
|
||||||
elseif realm == "star" then
|
elseif realm == "star" then
|
||||||
nameFunc = function(unit)
|
nameFunc = function(unit)
|
||||||
@@ -755,7 +755,7 @@ Private.format_types = {
|
|||||||
if realm then
|
if realm then
|
||||||
return name .. "*"
|
return name .. "*"
|
||||||
end
|
end
|
||||||
return name
|
return name or ""
|
||||||
end
|
end
|
||||||
elseif realm == "differentServer" then
|
elseif realm == "differentServer" then
|
||||||
nameFunc = function(unit)
|
nameFunc = function(unit)
|
||||||
@@ -766,7 +766,7 @@ Private.format_types = {
|
|||||||
if realm then
|
if realm then
|
||||||
return name .. "-" .. realm
|
return name .. "-" .. realm
|
||||||
end
|
end
|
||||||
return name
|
return name or ""
|
||||||
end
|
end
|
||||||
elseif realm == "always" then
|
elseif realm == "always" then
|
||||||
nameFunc = function(unit)
|
nameFunc = function(unit)
|
||||||
|
|||||||
Reference in New Issue
Block a user