Skip to content

Commit

Permalink
as self.children is removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Rathoz committed Oct 14, 2024
1 parent 43c87cb commit 8ae6e79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/widget/widget_table_old.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion components/widget/widget_table_row.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ local TableRow = Class.new(

---@return integer
function TableRow:getCellCount()
return #self.children
return #self.props.children
end

---@return Widget
Expand Down

0 comments on commit 8ae6e79

Please sign in to comment.