0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-04 13:29:14 -05:00

🐛 Importing shapes without fills

This commit is contained in:
Alejandro Alonso 2022-02-22 10:48:20 +01:00 committed by Alonso Torres
parent 6550631003
commit 10b147a25d

View file

@ -6,6 +6,7 @@
(ns app.main.ui.shapes.attrs
(:require
[app.common.data :as d]
[app.common.spec.radius :as ctr]
[app.common.spec.shape :refer [stroke-caps-line stroke-caps-marker]]
[app.main.ui.context :as muc]
@ -210,7 +211,7 @@
(obj/set! "fillOpacity" (obj/get svg-styles "fillOpacity")))
:else
(add-fill styles (get-in shape [:fills 0]) render-id 0))]
(add-fill styles (d/without-nils (get-in shape [:fills 0])) render-id 0))]
(-> props
(obj/merge! svg-attrs)