mirror of
https://github.com/penpot/penpot.git
synced 2025-07-13 00:47:18 +02:00
✨ Send only necessary data on profile update
This commit is contained in:
parent
408ca338e7
commit
121bff4eac
2 changed files with 3 additions and 4 deletions
|
@ -343,9 +343,9 @@
|
|||
(watch [_ state _]
|
||||
(let [on-success (:on-success opts identity)
|
||||
on-error (:on-error opts rx/throw)
|
||||
profile (:profile state)]
|
||||
|
||||
(->> (rp/cmd! :update-profile (dissoc profile :props))
|
||||
profile (:profile state)
|
||||
params (select-keys profile [:fullname :lang :theme])]
|
||||
(->> (rp/cmd! :update-profile params)
|
||||
(rx/tap on-success)
|
||||
(rx/catch on-error))))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue