mirror of
https://github.com/penpot/penpot.git
synced 2025-07-07 08:47:16 +02:00
🐛 Fix delete component annotation
This commit is contained in:
parent
54cee6ea72
commit
45e76bc38b
1 changed files with 2 additions and 2 deletions
|
@ -1377,7 +1377,7 @@
|
||||||
(not (contains? #{:group :bool} (:type head))))
|
(not (contains? #{:group :bool} (:type head))))
|
||||||
|
|
||||||
no-bool-shapes? (->> all-selected (some (comp #{:frame :text} :type)))]
|
no-bool-shapes? (->> all-selected (some (comp #{:frame :text} :type)))]
|
||||||
|
|
||||||
(if (and (some? shape) (not (contains? selected (:id shape))))
|
(if (and (some? shape) (not (contains? selected (:id shape))))
|
||||||
(rx/concat
|
(rx/concat
|
||||||
(rx/of (dws/select-shape (:id shape)))
|
(rx/of (dws/select-shape (:id shape)))
|
||||||
|
@ -2174,7 +2174,7 @@
|
||||||
"Update the component with the given annotation"
|
"Update the component with the given annotation"
|
||||||
[id annotation]
|
[id annotation]
|
||||||
(dm/assert! (uuid? id))
|
(dm/assert! (uuid? id))
|
||||||
(dm/assert! (string? annotation))
|
(dm/assert! (or (nil? annotation) (string? annotation)))
|
||||||
(ptk/reify ::update-component-annotation
|
(ptk/reify ::update-component-annotation
|
||||||
ptk/WatchEvent
|
ptk/WatchEvent
|
||||||
(watch [it state _]
|
(watch [it state _]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue