mirror of
https://github.com/penpot/penpot.git
synced 2025-05-24 23:16:10 +02:00
🐛 Fix problem opening url when page-id didn't exist (#5833)
Co-authored-by: Andrey Antukh <niwi@niwi.nz>
This commit is contained in:
parent
ceb90cd9e0
commit
8fe1271690
3 changed files with 18 additions and 4 deletions
|
@ -450,10 +450,12 @@
|
|||
|
||||
ptk/WatchEvent
|
||||
(watch [_ state _]
|
||||
(let [file-id (:current-file-id state)]
|
||||
(rx/of (preload-data-uris page-id)
|
||||
(dwth/watch-state-changes file-id page-id)
|
||||
(dwl/watch-component-changes))))))
|
||||
(if (dsh/lookup-page state page-id)
|
||||
(let [file-id (:current-file-id state)]
|
||||
(rx/of (preload-data-uris page-id)
|
||||
(dwth/watch-state-changes file-id page-id)
|
||||
(dwl/watch-component-changes)))
|
||||
(rx/of (dcm/go-to-workspace))))))
|
||||
|
||||
(defn finalize-page
|
||||
[page-id]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue