diff --git a/common/src/app/common/files/validate.cljc b/common/src/app/common/files/validate.cljc index b0156f942..d55a93ed1 100644 --- a/common/src/app/common/files/validate.cljc +++ b/common/src/app/common/files/validate.cljc @@ -133,7 +133,7 @@ (report-error :component-main-external (str/format "Main instance should refer to a component in the same file") shape file page)) - (let [component (ctf/resolve-component shape file libraries {:include-deleted? true})] + (let [component (ctf/resolve-component shape file libraries :include-deleted? true)] (if (nil? component) (report-error :component-not-found (str/format "Component %s not found in file" (:component-id shape) (:component-file shape)) diff --git a/common/src/app/common/types/file.cljc b/common/src/app/common/types/file.cljc index 1dd585e28..474067d68 100644 --- a/common/src/app/common/types/file.cljc +++ b/common/src/app/common/types/file.cljc @@ -126,10 +126,10 @@ (defn resolve-component "Retrieve the referenced component, from the local file or from a library" - [shape file libraries & params] + [shape file libraries & {:keys [include-deleted?] :or {include-deleted? false}}] (if (= (:component-file shape) (:id file)) - (ctkl/get-component (:data file) (:component-id shape) params) - (get-component libraries (:component-file shape) (:component-id shape) params))) + (ctkl/get-component (:data file) (:component-id shape) include-deleted?) + (get-component libraries (:component-file shape) (:component-id shape) :include-deleted? include-deleted?))) (defn get-component-library "Retrieve the library the component belongs to."