Skip to content

Commit

Permalink
fix(system): improve labels of new nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
goshatch committed Feb 15, 2025
1 parent cb8c53b commit 865550d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/parts/frontend/components/system.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
Panel
addEdge]]
[uix.core :refer [defui $]]
[clojure.string :as str]
[parts.frontend.components.nodes :refer [node-types]]
[parts.frontend.utils.node-utils :refer [build-updated-part]]
[parts.frontend.context :as ctx]))
Expand All @@ -20,7 +21,7 @@
#js{:id (str (random-uuid))
:type type
:position #js{:x 390 :y 290}
:data #js{:label type}})
:data #js{:label (str/capitalize type)}})

(defn- add-node
([type]
Expand Down

0 comments on commit 865550d

Please # to comment.