0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-23 23:35:58 -05:00

Merge pull request #1937 from penpot/superalex-fix-add-stroke-for-text-with-shortcut

🐛 Fix adding string for texts with shortcut
This commit is contained in:
Eva Marco 2022-05-24 11:01:32 +02:00 committed by GitHub
commit 494e2df49f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -279,7 +279,10 @@
:always
(d/without-nils))]
(assoc-in shape [:strokes index] new-attrs)))))))))
(-> shape
(cond-> (not (contains? shape :strokes))
(assoc :strokes []))
(assoc-in [:strokes index] new-attrs))))))))))
(defn add-stroke
[ids stroke]