Added check

This commit is contained in:
Luca Deri 2025-04-04 14:19:23 +02:00
parent e1328ae36b
commit ab12565da2

View file

@ -740,12 +740,14 @@ function format_utils.format_name_value(name, value, shorten)
end
end
local idx = string.find(formatted_name_value, value)
if (idx == nil) then
formatted_name_value = formatted_name_value .. " [" .. value .. "]"
if(value ~= nil) then
local idx = string.find(formatted_name_value, value)
if (idx == nil) then
formatted_name_value = formatted_name_value .. " [" .. value .. "]"
end
end
return formatted_name_value
end