fix: add ? to src on image as contentstack cannot handle &

This commit is contained in:
Simon Emanuelsson
2024-02-12 16:22:14 +01:00
parent e5324f6f2f
commit df2b99a135
5 changed files with 25 additions and 21 deletions

View File

@@ -1,12 +1,12 @@
import { renderOptions } from "./renderOptions"
import Image from "next/image"
import JsonToHtml from "@/components/JsonToHtml"
import Link from "next/link"
import styles from "./puff.module.css"
import type { PuffProps } from "@/types/components/current/asides/puff"
import Image from "@/components/Image"
export default function Puff({ imageConnection, is_internal, link, link_text, pageConnection, text, title }: PuffProps) {
if (is_internal) {
@@ -46,7 +46,6 @@ function PuffContent({ imageConnection, text, title }: Pick<PuffProps, "imageCon
height={image.node.dimension.height}
key={image.node.system.uid}
src={image.node.url}
unoptimized
width={image.node.dimension.width}
/>
))}