0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-12 15:51:37 -05:00

🐛 Minor memory leak fix on workspace initialization.

This commit is contained in:
Andrey Antukh 2021-03-01 16:39:13 +01:00
parent 52a3cd6ae4
commit c54d9b777d

View file

@ -181,8 +181,10 @@
;; Mark file initialized when indexes are ready
(->> stream
(rx/filter #(= ::dwc/index-initialized %))
(rx/map (constantly
(file-initialized project-id file-id))))
(rx/first)
(rx/map (fn []
(file-initialized project-id file-id))))
))))
(defn- file-initialized