0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 23:49:45 -05:00

Merge pull request #4220 from penpot/azazeln28-sort-interaction-destinations

 Sort interaction destinations by label
This commit is contained in:
Eva Marco 2024-03-05 16:04:39 +01:00 committed by GitHub
commit 2465690c7d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -380,7 +380,8 @@
{:value "" :label (tr "workspace.options.interaction-none")})]
destination-options
(mf/with-memo [frames-opts default-opts]
(d/concat-vec default-opts frames-opts))
(let [sorted-frames-opts (sort-by :label frames-opts)]
(d/concat-vec default-opts sorted-frames-opts)))
shape-parents-opts (get-shared-frames-options shape-parents)