From 9367788898ea0f114f42557027185c79e0db26ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Moya?= Date: Fri, 20 Jan 2023 11:49:22 +0100 Subject: [PATCH] :sparkles: Small improvement --- common/src/app/common/file_builder.cljc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/common/src/app/common/file_builder.cljc b/common/src/app/common/file_builder.cljc index ff30a2030..627ffc8a8 100644 --- a/common/src/app/common/file_builder.cljc +++ b/common/src/app/common/file_builder.cljc @@ -567,9 +567,8 @@ (defn start-component ([file data] (start-component file data :group)) ([file data root-type] - (let [selrect (if (and (:x data) (:y data) (:width data) (:height data)) - (gsh/make-selrect (:x data) (:y data) (:width data) (:height data)) - cts/empty-selrect) + (let [selrect (or (gsh/make-selrect (:x data) (:y data) (:width data) (:height data)) + cts/empty-selrect) name (:name data) path (:path data) main-instance-id (:main-instance-id data)