From c3f73ff7aa81452c37473a7e1e469f7a79683177 Mon Sep 17 00:00:00 2001 From: Pablo Alba Date: Wed, 23 Aug 2023 12:39:37 +0200 Subject: [PATCH] :bug: Fix error on press escape while renamming a component --- frontend/src/app/main/data/workspace.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/main/data/workspace.cljs b/frontend/src/app/main/data/workspace.cljs index 8bd067454e..56e86578c1 100644 --- a/frontend/src/app/main/data/workspace.cljs +++ b/frontend/src/app/main/data/workspace.cljs @@ -667,7 +667,7 @@ (rx/of (update-shape shape-id {:name name}))) ;; Update the component in case if shape is a main instance - (when (:main-instance shape) + (when (and (string? name) (not (str/blank? name)) (:main-instance shape)) (when-let [component-id (:component-id shape)] (rx/of (dwl/rename-component component-id name)))))))))))