0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 23:18:48 -05:00

Merge pull request #4258 from penpot/palba-fix-swap-mixed-paths

🐛 Fixes the folders in the Swap pannel appear weird on mixed
This commit is contained in:
Alejandro 2024-03-13 06:59:05 +01:00 committed by GitHub
commit a704e919d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -275,7 +275,7 @@
(defn- find-common-path
([components]
(let [paths (map (comp cfh/last-path :path) components)]
(let [paths (map (comp cfh/split-path :path) components)]
(find-common-path paths [] 0)))
([paths path n]
(let [current (nth (first paths) n nil)]