mirror of
https://github.com/penpot/penpot.git
synced 2025-02-08 08:09:14 -05:00
🐛 Fix code gen when just one fill
This commit is contained in:
parent
87d176fa2f
commit
6bf7e95a74
1 changed files with 3 additions and 2 deletions
|
@ -146,8 +146,9 @@
|
|||
|
||||
(defmethod get-value :background
|
||||
[_ {:keys [fills] :as shape} _]
|
||||
(when (and (not (cgc/svg-markup? shape)) (not (cfh/group-shape? shape)))
|
||||
(fill->color (first fills))))
|
||||
(let [single-fill? (= (count fills) 1)]
|
||||
(when (and (not (cgc/svg-markup? shape)) (not (cfh/group-shape? shape)) single-fill?)
|
||||
(fill->color (first fills)))))
|
||||
|
||||
(defn get-stroke-data
|
||||
[stroke]
|
||||
|
|
Loading…
Add table
Reference in a new issue