0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-28 15:41:25 -05:00

♻️ Avoid unnecessary logs

This commit is contained in:
Alejandro Alonso 2024-03-08 11:56:44 +01:00
parent 2c12790782
commit 8529927173
2 changed files with 0 additions and 7 deletions

View file

@ -266,9 +266,7 @@
(defn find-swap-slot
[shape container file libraries]
;; (js/console.log "find-swap-slot" (clj->js shape))
(if-let [swap-slot (ctk/get-swap-slot shape)]
;; (do (js/console.log "uno" (str swap-slot)) swap-slot)
swap-slot
(let [ref-shape (find-ref-shape file
container
@ -279,12 +277,8 @@
shape-meta (meta ref-shape)
ref-file (:file shape-meta)
ref-container (:container shape-meta)]
;; (js/console.log "ref-shape" (clj->js ref-shape))
;; (js/console.log "ref-file" (clj->js ref-file))
;; (js/console.log "ref-container" (clj->js ref-container))
(when ref-shape
(if-let [swap-slot (ctk/get-swap-slot ref-shape)]
;; (do (js/console.log "dos" (str swap-slot)) swap-slot)
swap-slot
(if (ctk/main-instance? ref-shape)
(:id shape)

View file

@ -905,7 +905,6 @@
libraries)
(ctk/build-swap-slot-group))))
;; _ (js/console.log "new-shape" (str (:id new-shape)) (clj->js new-shape))
changes
(-> changes
;; Restore the properties