Skip to content

Commit 7915211

Browse files
committed
fix(files): accept full ImgHTMLAttributes for img renderer to satisfy Streamdown Components type
1 parent 9fc1a4f commit 7915211

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/preview-panel.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -606,8 +606,8 @@ const STATIC_MARKDOWN_COMPONENTS = {
606606
)
607607
},
608608
hr: () => <hr className='my-6 border-[var(--border)]' />,
609-
img: ({ src, alt }: { src?: string; alt?: string }) => {
610-
const resolvedSrc = resolveSimFileUrl(src)
609+
img: ({ src, alt }: React.ImgHTMLAttributes<HTMLImageElement>) => {
610+
const resolvedSrc = resolveSimFileUrl(typeof src === 'string' ? src : undefined)
611611
return (
612612
<img
613613
src={resolvedSrc}

0 commit comments

Comments
 (0)