0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-12 07:41:43 -05:00

Sort interaction destinations by label

This commit is contained in:
Aitor 2024-03-05 13:10:54 +01:00
parent 42b68a786e
commit 3c9ae9b210

View file

@ -380,7 +380,8 @@
{:value "" :label (tr "workspace.options.interaction-none")})] {:value "" :label (tr "workspace.options.interaction-none")})]
destination-options destination-options
(mf/with-memo [frames-opts default-opts] (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) shape-parents-opts (get-shared-frames-options shape-parents)