We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc07b8e commit 78a9c46Copy full SHA for 78a9c46
1 file changed
src/components/ui/picture.astro
@@ -16,7 +16,7 @@ if (typeof Astro.props.class === "string") {
16
pictureClass = Astro.props.class;
17
}
18
19
-if (typeof Astro.props.class === "object") {
+if (typeof Astro.props.class === "object" && Astro.props.class !== null) {
20
pictureClass = Astro.props.class.picture;
21
imgClass = Astro.props.class.img;
22
0 commit comments