From b86ea5b5e2b0553fabe5a7172becf1976a1ba9fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Moya?= Date: Thu, 5 May 2022 12:11:31 +0200 Subject: [PATCH] :bug: Fix notifications of external library changes https://tree.taiga.io/project/penpot/issue/3348 --- frontend/src/app/main/data/workspace/notifications.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/main/data/workspace/notifications.cljs b/frontend/src/app/main/data/workspace/notifications.cljs index 40f6f8ae1..fa88c508a 100644 --- a/frontend/src/app/main/data/workspace/notifications.cljs +++ b/frontend/src/app/main/data/workspace/notifications.cljs @@ -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