0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-09 16:48:16 -05:00

🐛 It is possible to create empty component annotation (2)

This commit is contained in:
Pablo Alba 2023-06-22 13:34:27 +02:00
parent 776159c1e8
commit 1817d4ce38

View file

@ -31,7 +31,7 @@
component-id (:component-id values)
annotation (:annotation component)
editing? (mf/use-state false)
invalid-text? (mf/use-state (str/empty? annotation))
invalid-text? (mf/use-state (or (nil? annotation)(str/empty? annotation)))
size (mf/use-state (count annotation))
textarea-ref (mf/use-ref)