mirror of
https://github.com/penpot/penpot.git
synced 2026-02-26 22:34:11 +00:00
🐛 Fix delete component annotation
This commit is contained in:
@@ -1377,7 +1377,7 @@
|
||||
(not (contains? #{:group :bool} (:type head))))
|
||||
|
||||
no-bool-shapes? (->> all-selected (some (comp #{:frame :text} :type)))]
|
||||
|
||||
|
||||
(if (and (some? shape) (not (contains? selected (:id shape))))
|
||||
(rx/concat
|
||||
(rx/of (dws/select-shape (:id shape)))
|
||||
@@ -2174,7 +2174,7 @@
|
||||
"Update the component with the given annotation"
|
||||
[id annotation]
|
||||
(dm/assert! (uuid? id))
|
||||
(dm/assert! (string? annotation))
|
||||
(dm/assert! (or (nil? annotation) (string? annotation)))
|
||||
(ptk/reify ::update-component-annotation
|
||||
ptk/WatchEvent
|
||||
(watch [it state _]
|
||||
|
||||
Reference in New Issue
Block a user