mirror of
https://github.com/penpot/penpot.git
synced 2025-01-23 23:18:48 -05:00
🐛 Fix websocket unexpected exception on exportation module
A regression caused by the previous commit that refactos the websockets API and its state management.
This commit is contained in:
parent
ebe8fdcba8
commit
9c194ee3cb
1 changed files with 5 additions and 0 deletions
|
@ -55,6 +55,7 @@
|
|||
(rx/filter (ptk/type? ::initialize) stream))]
|
||||
|
||||
(->> (rx/merge
|
||||
(rx/of #(assoc % :ws-conn ws))
|
||||
(->> (ws/get-rcv-stream ws)
|
||||
(rx/filter ws/message-event?)
|
||||
(rx/map :payload)
|
||||
|
@ -69,6 +70,10 @@
|
|||
(defn finalize
|
||||
[]
|
||||
(ptk/reify ::finalize
|
||||
ptk/UpdateEvent
|
||||
(update [_ state]
|
||||
(dissoc state :ws-conn))
|
||||
|
||||
ptk/EffectEvent
|
||||
(effect [_ _ _]
|
||||
(l/trace :hint "event:finalize" :fn "effect")
|
||||
|
|
Loading…
Add table
Reference in a new issue