🐛 Fix typo in transducer that prevents component swap from open

This commit is contained in:
Pablo Alba 2023-11-07 12:49:34 +01:00
parent 00afb841ac
commit 3448259c60

View file

@ -160,7 +160,7 @@
[:div.component-item [:div.component-item
{:ref item-ref {:ref item-ref
:class (stl/css-case :disabled loop) :class (stl/css-case :disabled loop)
:key (:id item) :key (str "swap-item-" (:id item))
:on-click on-select-component} :on-click on-select-component}
(when visible? (when visible?
[:& cmm/component-item-thumbnail {:file-id (:file-id item) [:& cmm/component-item-thumbnail {:file-id (:file-id item)
@ -232,7 +232,7 @@
(mapcat get-subgroups) (mapcat get-subgroups)
(remove str/empty?) (remove str/empty?)
(remove nil?) (remove nil?)
distinct (distinct)
(filter #(= (cph/butlast-path %) (:path filters)))) (filter #(= (cph/butlast-path %) (:path filters))))
groups (when-not is-search? groups (when-not is-search?