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:
parent
f63657509f
commit
0b2074c254
1 changed files with 2 additions and 2 deletions
|
@ -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))))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue