mirror of
https://github.com/penpot/penpot.git
synced 2025-04-12 23:11:23 -05:00
🔧 Activate one repair
This commit is contained in:
parent
9c9bc8803d
commit
2284c18c2b
1 changed files with 3 additions and 6 deletions
|
@ -349,12 +349,9 @@
|
|||
[_ {:keys [shape page-id] :as error} file-data _]
|
||||
(let [repair-shape
|
||||
(fn [shape]
|
||||
;; ; Detach the shape and convert it to non instance.
|
||||
;; (log/debug :hint " -> Detach shape" :shape-id (:id shape))
|
||||
;; (ctk/detach-shape shape))]
|
||||
; There is no solution that may recover it with confidence
|
||||
(log/warn :hint " -> CANNOT REPAIR THIS AUTOMATICALLY.")
|
||||
shape)]
|
||||
; Detach the shape and convert it to non instance.
|
||||
(log/debug :hint " -> Detach shape" :shape-id (:id shape))
|
||||
(ctk/detach-shape shape))]
|
||||
|
||||
(log/info :hint "Repairing shape :not-head-main-not-allowed" :id (:id shape) :name (:name shape) :page-id page-id)
|
||||
(-> (pcb/empty-changes nil page-id)
|
||||
|
|
Loading…
Add table
Reference in a new issue