0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-07 06:48:19 -05:00

Merge pull request #1844 from penpot/superalex-fix-duplicate-artobard-without-guides

:bug Fix duplicate artboard without whithout guides
This commit is contained in:
Alejandro 2022-04-27 06:42:02 +02:00 committed by GitHub
commit 32d61eaf70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -421,8 +421,11 @@
(assoc :position (if (= (:axis %) :x)
(+ (:position %) (- (:x new-frame) (:x frame)))
(+ (:position %) (- (:y new-frame) (:y frame))))))))]
(if-not (empty? new-guides)
(conj g
(into {} (map (juxt :id identity) new-guides)))))
(into {} (map (juxt :id identity) new-guides)))
{})))
guides
frames)]
(-> (pcb/with-page changes page)