diff --git a/samples/nextjs-template/src/components/AboutUs.tsx b/samples/nextjs-template/src/components/AboutUs.tsx index 6894ebdf..6c1bdc9e 100644 --- a/samples/nextjs-template/src/components/AboutUs.tsx +++ b/samples/nextjs-template/src/components/AboutUs.tsx @@ -1,5 +1,6 @@ import { contentType, Infer } from '@optimizely/cms-sdk'; import { RichText, ElementProps } from '@optimizely/cms-sdk/react/richText'; +import Image from 'next/image'; export const AboutUsContentType = contentType({ key: 'AboutUs', @@ -33,9 +34,9 @@ const customHeadingTwo = (props: ElementProps) => { export default function AboutUs({ opti }: AboutUsProps) { return (
- {opti.image && ( + {opti?.image?.url?.default && (
- aboutus_image + aboutus_image
)}

{opti.heading}