From 74e57c00af0d3481ee070e1bdf3f7903725ce142 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Thu, 15 Feb 2024 17:16:59 +0100 Subject: [PATCH] :bug: Fix create interactions with nested frames --- frontend/src/app/main/data/workspace/interactions.cljs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/main/data/workspace/interactions.cljs b/frontend/src/app/main/data/workspace/interactions.cljs index a8e2fe284a..2bdc9f2e18 100644 --- a/frontend/src/app/main/data/workspace/interactions.cljs +++ b/frontend/src/app/main/data/workspace/interactions.cljs @@ -208,7 +208,10 @@ from-frame-id (if (cfh/frame-shape? from-shape) from-id (:frame-id from-shape)) - target-frame (ctst/get-frame-by-position objects position)] + target-frame + (->> (ctst/get-frames-by-position objects position) + (remove :hide-in-viewer) + (last))] (when (and (not= (:id target-frame) uuid/zero) (not= (:id target-frame) from-frame-id))