From 8a41748a150f268b505e157fd87ac7ffcda6083c Mon Sep 17 00:00:00 2001 From: Rikard Blixt Date: Tue, 24 Sep 2024 11:12:05 +0200 Subject: [PATCH] does this fix the ppt issue? --- components/widget/widget.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/components/widget/widget.lua b/components/widget/widget.lua index 3525813d310..975dad4eac6 100644 --- a/components/widget/widget.lua +++ b/components/widget/widget.lua @@ -22,7 +22,7 @@ local String = require('Module:StringUtils') local Widget = Class.new(function(self, props) self.props = props or {} self.props.children = self.props.children or {} - self.children = self.props.children -- Legacy support @deprecated + self.children = self.children or self.props.children -- Legacy support @deprecated self.context = {} -- Set by the parent end) @@ -69,10 +69,6 @@ function Widget:tryMake(injector) if Class.instanceOf(val, Widget) then ---@cast val Widget val.context = self:_nextContext() - local ret2 = val:tryMake(injector) - if type(ret2) == 'table' then - error('returned table?!?!' .. tostring(ret2)) - end return acc .. val:tryMake(injector) end if val ~= nil then