0
Fork 0
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:
alonso.torres 2024-03-15 15:54:40 +01:00
parent dc7d279e9d
commit 8e7471509c

View file

@ -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