mirror of
https://github.com/penpot/penpot.git
synced 2026-08-07 04:52:36 -04:00
Fix cancelling set prompt breaking user state
This commit is contained in:
1 parent
e4f01d1d5e
commit
b1cf641587
1 file changed
+2
-1
@@ -219,7 +219,8 @@
|
||||
"🗑️"]]]])]])]]
|
||||
[:div.spaced
|
||||
[:b "Sets"]
|
||||
[:button {:on-click #(st/emit! (wdt/create-token-set {:name (js/window.prompt "Set name")}))} "Create"]]
|
||||
[:button {:on-click #(when-let [set-name (js/window.prompt "Set name")]
|
||||
(st/emit! (wdt/create-token-set {:name set-name})))} "Create"]]
|
||||
[:ul.spaced-y
|
||||
(for [[_ {:keys [id name]}] token-sets]
|
||||
[:li {:class [(when (= selected-token-set-id id) "selected")]
|
||||
|
||||
Reference in new issue
Block a user