mirror of
https://github.com/penpot/penpot.git
synced 2026-04-27 12:18:32 +00:00
🐛 Fix nitrate go to control center
This commit is contained in:
parent
5c761125f3
commit
d91ce0f9d1
@ -27,11 +27,13 @@
|
||||
([]
|
||||
(st/emit! (rt/nav-raw :href "/control-center/")))
|
||||
([{:keys [organization-id organization-slug]}]
|
||||
(let [href (dm/str "/control-center/org/"
|
||||
(u/percent-encode organization-slug)
|
||||
"/"
|
||||
(u/percent-encode (str organization-id)))]
|
||||
(st/emit! (rt/nav-raw :href href)))))
|
||||
(if (and organization-id organization-slug)
|
||||
(let [href (dm/str "/control-center/org/"
|
||||
(u/percent-encode organization-slug)
|
||||
"/"
|
||||
(u/percent-encode (str organization-id)))]
|
||||
(st/emit! (rt/nav-raw :href href)))
|
||||
(st/emit! (rt/nav-raw :href "/control-center/")))))
|
||||
|
||||
(defn go-to-nitrate-cc-create-org
|
||||
[]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user