🐛 Fix overlay close from an artboard

This commit is contained in:
Andrés Moya 2023-07-07 10:21:07 +02:00
parent a2d1ce8120
commit e563611c05
2 changed files with 3 additions and 1 deletions

View file

@ -110,7 +110,8 @@
:close-overlay
(let [dest-frame-id (or (:destination interaction)
(if (= (:type shape) :frame)
(if (and (= (:type shape) :frame)
(some #(= (:id %) (:id shape)) overlays))
(:id shape)
(:frame-id shape)))]
(st/emit! (dv/close-overlay dest-frame-id (:animation interaction))))