From 46978b7a153cd0e13893a536d0a3ee672dcdfd0f Mon Sep 17 00:00:00 2001 From: Rikard Blixt Date: Tue, 17 Sep 2024 15:42:39 +0200 Subject: [PATCH] this one can be changed too now that it exists --- components/widget/widget.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/widget/widget.lua b/components/widget/widget.lua index 7919829192b..05c187d7f2a 100644 --- a/components/widget/widget.lua +++ b/components/widget/widget.lua @@ -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,