mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 16:30:37 -05:00
🐛 Fix problem on modal transfer owner
This commit is contained in:
parent
dc7d279e9d
commit
8e7471509c
1 changed files with 7 additions and 4 deletions
|
@ -29,10 +29,13 @@
|
||||||
members-map (mf/deref refs/dashboard-team-members)
|
members-map (mf/deref refs/dashboard-team-members)
|
||||||
members (vals members-map)
|
members (vals members-map)
|
||||||
|
|
||||||
options (into [{:value ""
|
options
|
||||||
:label (tr "modals.leave-and-reassign.select-member-to-promote")}]
|
(into [{:value ""
|
||||||
(filter #(not= (:label %) (:fullname profile))
|
:label (tr "modals.leave-and-reassign.select-member-to-promote")}]
|
||||||
(map #(hash-map :label (:name %) :value (str (:id %))) members)))
|
(comp
|
||||||
|
(filter #(not= (:email %) (:email profile)))
|
||||||
|
(map #(hash-map :label (:name %) :value (str (:id %)))))
|
||||||
|
members)
|
||||||
|
|
||||||
on-cancel #(st/emit! (modal/hide))
|
on-cancel #(st/emit! (modal/hide))
|
||||||
on-accept
|
on-accept
|
||||||
|
|
Loading…
Reference in a new issue