You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to access the shadows from a Shape, if no shadows are defined, the field is null instead of empty array [] as the API (and penpot-types define it).
I am not sure if the plugins API should be updated or if this should be updated in penpot so that it returns an empty array instead (which is preferred).
The text was updated successfully, but these errors were encountered:
Steps To Reproduce
shadows
viapenpot.selection.shapes[id].shadows
Expected behavior
Shape.shadows
is notnull
, but empty array[]
in case when there is no shadow set for a shape.Actual behavior
Shape.shadows
isnull
.Screenshots or video
No response
Desktop (please complete the following information)
No response
Smartphone (please complete the following information)
Browser / Chrome
Environment (please complete the following information)
https://design.penpot.app
Frontend Stack Trace
Backend Stack Trace
Additional context
When trying to access the
shadows
from aShape
, if no shadows are defined, the field isnull
instead of empty array[]
as the API (andpenpot-types
define it).I am not sure if the plugins API should be updated or if this should be updated in penpot so that it returns an empty array instead (which is preferred).
The text was updated successfully, but these errors were encountered: