diff --git a/data/lua/wml-tags.lua b/data/lua/wml-tags.lua index 6c41304fb40..12ce6a23c69 100644 --- a/data/lua/wml-tags.lua +++ b/data/lua/wml-tags.lua @@ -900,7 +900,7 @@ end function wml_actions.role(cfg) -- role= and type= are handled differently than in other tags, -- so we need to remove them from the filter - local role = cfg.role + local role = cfg.role or "" local filter = helper.shallow_literal(cfg) local types = {}