mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 08:20:45 -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 (vals members-map)
|
||||
|
||||
options (into [{:value ""
|
||||
:label (tr "modals.leave-and-reassign.select-member-to-promote")}]
|
||||
(filter #(not= (:label %) (:fullname profile))
|
||||
(map #(hash-map :label (:name %) :value (str (:id %))) members)))
|
||||
options
|
||||
(into [{:value ""
|
||||
:label (tr "modals.leave-and-reassign.select-member-to-promote")}]
|
||||
(comp
|
||||
(filter #(not= (:email %) (:email profile)))
|
||||
(map #(hash-map :label (:name %) :value (str (:id %)))))
|
||||
members)
|
||||
|
||||
on-cancel #(st/emit! (modal/hide))
|
||||
on-accept
|
||||
|
|
Loading…
Reference in a new issue