Merge pull request #2855 from penpot/alotor-migration-fix-frame-id

🐛 Add migration to fix problem with frame-id
This commit is contained in:
Alejandro 2023-01-30 09:39:18 +01:00 committed by GitHub
commit f85a731969
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 49 additions and 20 deletions

View file

@ -432,7 +432,8 @@
(or
(= uuid/zero id)
(and
(str/includes? (str/lower (:name shape)) (str/lower search))
(or (str/includes? (str/lower (:name shape)) (str/lower search))
(str/includes? (dm/str (:id shape)) (str/lower search)))
(or
(empty? filters)
(and

View file

@ -243,6 +243,7 @@
(filter #(or (empty? focus) (cp/is-in-focus? objects focus %)))
(first)
(get objects))]
(reset! hover hover-shape)
(reset! hover-ids ids)
(reset! hover-top-frame-id (ctt/top-nested-frame objects (deref last-point-ref))))))))