Skip to content

Commit

Permalink
does this fix the ppt issue?
Browse files Browse the repository at this point in the history
  • Loading branch information
Rathoz committed Sep 24, 2024
1 parent e5ae785 commit 8a41748
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions components/widget/widget.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8a41748

Please sign in to comment.