Default empty props

This commit is contained in:
Sabine Lim
2023-05-18 03:05:00 +10:00
parent c5effd002c
commit eee1060651

View File

@@ -173,6 +173,9 @@ return {
Container = function(base, basalt)
local object = {
loadLayout = function(self, path, props)
if (props == nil) then
props = {}
end
local layout = basalt.layout(path)
local objects = basalt.createObjectsFromLayout(layout, props)
for _, object in ipairs(objects) do