mirror of
https://github.com/penpot/penpot.git
synced 2026-06-20 14:22:08 +00:00
🐛 Remove inconsistent library :is-indirect handling on frontend state
Related to #9506
This commit is contained in:
parent
11f3ef2549
commit
540bc97787
@ -188,9 +188,13 @@
|
||||
(rx/merge
|
||||
(->> (rx/from libraries)
|
||||
(rx/merge-map
|
||||
(fn [{:keys [id synced-at]}]
|
||||
(fn [{:keys [id synced-at is-indirect]}]
|
||||
(->> (rp/cmd! :get-file {:id id :features features})
|
||||
(rx/map #(assoc % :synced-at synced-at :library-of file-id)))))
|
||||
(rx/map (fn [file]
|
||||
(-> file
|
||||
(assoc :synced-at synced-at)
|
||||
(assoc :library-of file-id)
|
||||
(assoc :is-indirect is-indirect)))))))
|
||||
(rx/mapcat resolve-file)
|
||||
(rx/map library-resolved))
|
||||
(->> (rx/from libraries)
|
||||
|
||||
@ -36,7 +36,6 @@
|
||||
libraries (mf/with-memo [files file-id]
|
||||
(->> (refs/select-libraries files file-id)
|
||||
(vals)
|
||||
(remove :is-indirect)
|
||||
(remove #(= file-id (:id %)))
|
||||
(map (fn [file]
|
||||
(update file :data dissoc :pages-index)))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user