0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-13 00:01:51 -05:00

🐛 Fix rename pages in workspace

This commit is contained in:
Andrés Moya 2020-06-11 09:36:25 +02:00 committed by Andrey Antukh
parent f63657509f
commit 0b2074c254

View file

@ -238,8 +238,8 @@
(ptk/reify ::rename-page
ptk/UpdateEvent
(update [_ state]
(let [pid (get-in state [:workspac-page :id])
state (assoc-in state [:workspac-pages id :name] name)]
(let [pid (get-in state [:workspace-page :id])
state (assoc-in state [:workspace-pages id :name] name)]
(cond-> state
(= pid id) (assoc-in [:workspace-page :name] name))))