0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-23 07:16:07 -05:00

🐛 Fix open comment in workspace from dashboard notification (#5865)

This commit is contained in:
luisδμ 2025-02-17 12:29:19 +01:00 committed by GitHub
parent faa3451da9
commit a9340709c8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -22,7 +22,6 @@
[app.main.data.workspace.drawing :as dwd]
[app.main.data.workspace.edition :as dwe]
[app.main.data.workspace.selection :as dws]
[app.main.data.workspace.viewport :as dwv]
[app.main.repo :as rp]
[app.main.router :as rt]
[app.main.streams :as ms]
@ -118,7 +117,7 @@
:page-id (:page-id thread)))
(->> stream
(rx/filter (ptk/type? ::dwv/initialize-viewport))
(rx/filter (ptk/type? ::dcmt/comment-threads-fetched))
(rx/take 1)
(rx/mapcat #(rx/of (center-to-comment-thread thread)
(dwd/select-for-drawing :comments)