diff --git a/src/components/MDX/IMG.astro b/src/components/MDX/IMG.astro index 30d5436..eec55b9 100644 --- a/src/components/MDX/IMG.astro +++ b/src/components/MDX/IMG.astro @@ -4,7 +4,7 @@ const { src, alt } = Astro.props; import { getImageByPath } from "@lib/utils"; -const imageSRC = getImageByPath(src)!; +const image = getImageByPath(src); --- -{alt} +{image && {alt}}