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
{{ message }}
This repository was archived by the owner on Jan 7, 2026. It is now read-only.
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).
Steps To Reproduce
shadowsviapenpot.selection.shapes[id].shadowsExpected behavior
Shape.shadowsis notnull, but empty array[]in case when there is no shadow set for a shape.Actual behavior
Shape.shadowsisnull.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
shadowsfrom aShape, if no shadows are defined, the field isnullinstead of empty array[]as the API (andpenpot-typesdefine 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).