mirror of
https://github.com/penpot/penpot.git
synced 2025-05-29 20:26:10 +02:00
🐛 Fix error when an external user tries to export a shape on viewer (#6252)
This commit is contained in:
parent
28a6797595
commit
033ca0d56b
3 changed files with 24 additions and 25 deletions
|
@ -143,17 +143,7 @@
|
|||
nil)
|
||||
|
||||
(do
|
||||
(st/emit! (ptk/reify ::initialize-render-objects
|
||||
ptk/WatchEvent
|
||||
(watch [_ _ stream]
|
||||
(rx/merge
|
||||
(rx/of (fetch-team :file-id file-id))
|
||||
|
||||
(->> stream
|
||||
(rx/filter (ptk/type? ::team-fetched))
|
||||
(rx/observe-on :async)
|
||||
(rx/map (constantly params))
|
||||
(rx/map fetch-objects-bundle))))))
|
||||
(st/emit! (fetch-objects-bundle :file-id file-id :page-id page-id :share-id share-id :object-id object-id))
|
||||
|
||||
(if (uuid? object-id)
|
||||
(mf/html
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue