🐛 Fix multiple elements export

This commit is contained in:
Alejandro Alonso 2023-08-09 09:55:51 +02:00 committed by Andrey Antukh
parent fbcc2494b4
commit 15a9035ed1

View file

@ -151,9 +151,9 @@
(rx/tap (fn [[fonts]] (rx/tap (fn [[fonts]]
(when (seq fonts) (when (seq fonts)
(st/emit! (df/fonts-fetched fonts))))) (st/emit! (df/fonts-fetched fonts)))))
(rx/map (comp :objects second)))))) (rx/map (fn [[_ page]] {:objects (:objects page)}))))))
objects (use-resource fetch-state)] {:keys [objects]} (use-resource fetch-state)]
(when objects (when objects
(for [object-id object-ids] (for [object-id object-ids]