Module:Lorebook/Debug: Difference between revisions

Add detailed raw SMW data debugging to diagnose primary keys issue
No edit summary
Line 78: Line 78:
local function normalizeValue(val)
local function normalizeValue(val)
   if type(val) == 'table' then
   if type(val) == 'table' then
     return val[1] or ''
     return val[1]
   end
   end
   return val or ''
   return val
end
end