diff --git a/frontend/src/app/main/data/workspace.cljs b/frontend/src/app/main/data/workspace.cljs index 8bd067454..56e86578c 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)))))))))))