From 8ae6e79a7face7ad94284960e1df311e7cca8fe9 Mon Sep 17 00:00:00 2001 From: Rikard Blixt Date: Mon, 14 Oct 2024 15:25:29 +0200 Subject: [PATCH] as self.children is removed --- components/widget/widget_table_old.lua | 2 +- components/widget/widget_table_row.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/widget/widget_table_old.lua b/components/widget/widget_table_old.lua index c3a1a2dca9f..fa211124460 100644 --- a/components/widget/widget_table_old.lua +++ b/components/widget/widget_table_old.lua @@ -51,7 +51,7 @@ function TableOld:_getMaxCells() local getNumberCells = function(row) return row:getCellCount() end - return Array.reduce(Array.map(self.children, getNumberCells), math.max) + return Array.reduce(Array.map(self.props.children, getNumberCells), math.max) end return TableOld diff --git a/components/widget/widget_table_row.lua b/components/widget/widget_table_row.lua index e27f1a94b4b..756f3bac4f4 100644 --- a/components/widget/widget_table_row.lua +++ b/components/widget/widget_table_row.lua @@ -32,7 +32,7 @@ local TableRow = Class.new( ---@return integer function TableRow:getCellCount() - return #self.children + return #self.props.children end ---@return Widget