We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc31c03 commit af7e4cdCopy full SHA for af7e4cd
src/components/ParallaxBanner/index.tsx
@@ -55,7 +55,7 @@ export const ParallaxBanner = (
55
PropsWithChildren<{ targetElement: any }>
56
>;
57
// adds the targetElement prop to any ParallaxBannerLayer components
58
- if (item.type === ParallaxBannerLayer) {
+ if (item?.type === ParallaxBannerLayer) {
59
const clone = React.cloneElement(item, {
60
targetElement,
61
});
0 commit comments