mirror of
https://github.com/penpot/penpot.git
synced 2025-02-14 02:58:39 -05:00
🐛 Fix notifications of external library changes
https://tree.taiga.io/project/penpot/issue/3348
This commit is contained in:
parent
8fb22b8eee
commit
b86ea5b5e2
1 changed files with 2 additions and 2 deletions
|
@ -54,8 +54,8 @@
|
|||
;; Subscribe to notifications of the subscription
|
||||
(->> stream
|
||||
(rx/filter (ptk/type? ::dws/message))
|
||||
(rx/map deref)
|
||||
(rx/filter #(= subs-id (:subs-id %)))
|
||||
(rx/map deref) ;; :library-change events occur in a different file, but need to be processed anyway
|
||||
(rx/filter #(or (= subs-id (:subs-id %)) (= (:type %) :library-change)))
|
||||
(rx/map process-message))
|
||||
|
||||
;; On reconnect, send again the subscription messages
|
||||
|
|
Loading…
Add table
Reference in a new issue