🐛 Fix problem opening url when page-id didn't exist (#5833)

Co-authored-by: Andrey Antukh <niwi@niwi.nz>
This commit is contained in:
Alonso Torres 2025-02-12 14:36:05 +01:00 committed by GitHub
parent ceb90cd9e0
commit 8fe1271690
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 18 additions and 4 deletions

View file

@ -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]