🐛 Fix problem creating manual overlay interactions

This commit is contained in:
alonso.torres 2024-11-11 16:06:37 +01:00
parent e369b70aeb
commit 2fa81474b9
2 changed files with 15 additions and 7 deletions

View file

@ -1,5 +1,11 @@
# CHANGELOG # CHANGELOG
## 2.3.3
### :bug: Bugs fixed
- Fix problem creating manual overlay interactions [Taiga #9146](https://tree.taiga.io/project/penpot/issue/9146)
## 2.3.2 ## 2.3.2
### :bug: Bugs fixed ### :bug: Bugs fixed

View file

@ -206,10 +206,12 @@
(watch [_ _ _] (watch [_ _ _]
(let [interactions (ctsi/update-interaction (:interactions shape) index update-fn) (let [interactions (ctsi/update-interaction (:interactions shape) index update-fn)
interaction (nth interactions index)] interaction (nth interactions index)]
(rx/of (dwsh/update-shapes (rx/of
(dwsh/update-shapes
[(:id shape)] [(:id shape)]
(fn [shape] (fn [shape]
(assoc shape :interactions interactions)) (-> shape
(update :interactions ctsi/update-interaction index update-fn)))
options) options)
(when (some? (:destination interaction)) (when (some? (:destination interaction))