add check for nil on documentation.value (#1091)

This commit is contained in:
Josh Bode
2022-07-25 03:47:47 +00:00
committed by GitHub
parent 76ba56ce96
commit 706371f130

View File

@@ -442,7 +442,7 @@ entry.get_documentation = function(self)
value = value, value = value,
}) })
end end
elseif type(documentation) == 'table' and documentation.value ~= '' then elseif type(documentation) == 'table' and not misc.empty(documentation.value) then
local value = str.trim(documentation.value) local value = str.trim(documentation.value)
if value ~= '' then if value ~= '' then
table.insert(documents, { table.insert(documents, {