mirror of
https://github.com/penpot/penpot.git
synced 2025-08-07 14:38:33 +02: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/reify ::rename-page
|
||||||
ptk/UpdateEvent
|
ptk/UpdateEvent
|
||||||
(update [_ state]
|
(update [_ state]
|
||||||
(let [pid (get-in state [:workspac-page :id])
|
(let [pid (get-in state [:workspace-page :id])
|
||||||
state (assoc-in state [:workspac-pages id :name] name)]
|
state (assoc-in state [:workspace-pages id :name] name)]
|
||||||
(cond-> state
|
(cond-> state
|
||||||
(= pid id) (assoc-in [:workspace-page :name] name))))
|
(= pid id) (assoc-in [:workspace-page :name] name))))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue