0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-01 11:59:17 -05:00

Merge pull request #3286 from penpot/superalex-fix-add-flow-option-for-frames

🐛 Fix add flow option in contextual menu for frames
This commit is contained in:
Pablo Alba 2023-06-16 12:17:48 +02:00 committed by GitHub
commit cdc3367d1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -349,7 +349,7 @@
(mf/defc context-menu-prototype (mf/defc context-menu-prototype
[{:keys [shapes]}] [{:keys [shapes]}]
(let [options (mf/deref refs/workspace-page-options) (let [options (mf/deref refs/workspace-page-options)
options-mode (mf/deref refs/options-mode) options-mode (mf/deref refs/options-mode-global)
do-add-flow #(st/emit! (dwi/add-flow-selected-frame)) do-add-flow #(st/emit! (dwi/add-flow-selected-frame))
do-remove-flow #(st/emit! (dwi/remove-flow (:id %))) do-remove-flow #(st/emit! (dwi/remove-flow (:id %)))
flows (:flows options) flows (:flows options)