0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 15:09:10 -05:00

🐛 Fix problem on finalize page

This commit is contained in:
alonso.torres 2023-03-06 16:27:13 +01:00
parent 9d43bb4252
commit 7b72906096

View file

@ -106,7 +106,7 @@
(let [prev-page-id (hooks/use-previous page-id)]
(mf/with-effect
[page-id]
(when (and page-id (not= prev-page-id page-id))
(when (and prev-page-id (not= prev-page-id page-id))
(st/emit! (dw/finalize-page prev-page-id)))
(if (nil? page-id)