From d66452423f868ae0c39fff0ce117a3ff27479cce Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Wed, 3 Feb 2021 15:25:14 +0100 Subject: [PATCH] :bug: Fixes recursion problems when creating component --- frontend/src/app/main/data/workspace/libraries.cljs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/main/data/workspace/libraries.cljs b/frontend/src/app/main/data/workspace/libraries.cljs index a5bd1fd44..85a27cc9a 100644 --- a/frontend/src/app/main/data/workspace/libraries.cljs +++ b/frontend/src/app/main/data/workspace/libraries.cljs @@ -230,7 +230,8 @@ (let [file-id (:current-file-id state) page-id (:current-page-id state) objects (dwc/lookup-page-objects state page-id) - selected (get-in state [:workspace-local :selected])] + selected (get-in state [:workspace-local :selected]) + selected (cp/clean-loops objects selected)] (let [[group rchanges uchanges] (dwlh/generate-add-component selected objects page-id file-id)] (when-not (empty? rchanges)