0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-12 07:41:43 -05:00

🐛 Fix debug validate single shape

This commit is contained in:
Andrés Moya 2024-01-08 16:24:01 +01:00 committed by Andrey Antukh
parent 9d8628b4cc
commit 4d6c0f3da9
2 changed files with 1 additions and 4 deletions

View file

@ -502,6 +502,3 @@
:hint "error on validating file referential integrity" :hint "error on validating file referential integrity"
:file-id (:id file) :file-id (:id file)
:details errors))) :details errors)))

View file

@ -393,7 +393,7 @@
(try (try
(->> (if-let [shape-id (some-> shape-id parse-uuid)] (->> (if-let [shape-id (some-> shape-id parse-uuid)]
(let [page (dm/get-in file [:data :pages-index (get @st/state :current-page-id)])] (let [page (dm/get-in file [:data :pages-index (get @st/state :current-page-id)])]
(cfv/validate-shape (uuid shape-id) file page libraries)) (cfv/validate-shape shape-id file page libraries))
(cfv/validate-file file libraries)) (cfv/validate-file file libraries))
(group-by :code) (group-by :code)
(clj->js)) (clj->js))