diff --git a/common/src/app/common/pages/helpers.cljc b/common/src/app/common/pages/helpers.cljc index 4fdd8e4b4..224a4b716 100644 --- a/common/src/app/common/pages/helpers.cljc +++ b/common/src/app/common/pages/helpers.cljc @@ -209,9 +209,9 @@ "Retrieve a component from libraries, if no library-id is provided, we iterate over all libraries and find the component on it." ([libraries component-id] - (some #(-> % :components (get component-id)) (vals libraries))) + (some #(-> % :data :components (get component-id)) (vals libraries))) ([libraries library-id component-id] - (get-in libraries [library-id :components component-id]))) + (get-in libraries [library-id :data :components component-id]))) (defn ^boolean is-main-of? [shape-main shape-inst]