diff --git a/backend/src/app/rpc/commands/files.clj b/backend/src/app/rpc/commands/files.clj index d9e1d9b3ac..de9bc4b3dc 100644 --- a/backend/src/app/rpc/commands/files.clj +++ b/backend/src/app/rpc/commands/files.clj @@ -825,7 +825,7 @@ (defn- set-file-shared [{:keys [::db/conn] :as cfg} {:keys [profile-id id] :as params}] (check-edition-permissions! conn profile-id id) - (let [file (db/get-by-id conn id {:columns [:id :name :is-shared]}) + (let [file (db/get-by-id conn :file id {:columns [:id :name :is-shared]}) file (cond (and (true? (:is-shared file)) (false? (:is-shared params))) diff --git a/common/src/app/common/files/validate.cljc b/common/src/app/common/files/validate.cljc index 69651085d5..e506ce14d3 100644 --- a/common/src/app/common/files/validate.cljc +++ b/common/src/app/common/files/validate.cljc @@ -186,7 +186,7 @@ (when-not (= (:main-instance-page component) (:id page)) (let [component-page (ctf/get-component-page (:data file) component) main-component (ctst/get-shape component-page (:main-instance-id component))] - ;; We must check if the same component has main instances in different pages. + ;; We must check if the same component has main instances in different pages. ;; In that case one of those instances shouldn't be main (if (:main-instance main-component) (report-error! :component-main