From eee10606510a6adc21080344ef69643377a95653 Mon Sep 17 00:00:00 2001 From: Sabine Lim Date: Thu, 18 May 2023 03:05:00 +1000 Subject: [PATCH] Default empty props --- Basalt/plugins/reactive.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Basalt/plugins/reactive.lua b/Basalt/plugins/reactive.lua index 8f583d7..5ba3856 100644 --- a/Basalt/plugins/reactive.lua +++ b/Basalt/plugins/reactive.lua @@ -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