Skip to content

Commit

Permalink
this one can be changed too now that it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Rathoz committed Sep 17, 2024
1 parent c929895 commit 46978b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/widget/widget.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function Widget:tryChildren(injector)
children = self:makeChildren(injector) or {}
end
return Array.map(children, function(child)
if type(child) == 'table' and type(child['is_a']) == 'function' and child:is_a(Widget) then
if Class.instanceOf(child, Widget) then
---@cast child Widget
return Logic.tryOrElseLog(
function() return child:tryMake(injector) end,
Expand Down

0 comments on commit 46978b7

Please sign in to comment.