Skip to content

Commit 28e0eeb

Browse files
committed
fix(mothership): widen img component prop type to satisfy Streamdown Components
1 parent c79e644 commit 28e0eeb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/chat-content

apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/chat-content/chat-content.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,8 @@ const MARKDOWN_COMPONENTS = {
241241
del({ children }: { children?: React.ReactNode }) {
242242
return <del className='text-[var(--text-tertiary)] line-through'>{children}</del>
243243
},
244-
img({ src, alt }: { src?: string; alt?: string }) {
245-
if (!src) return null
244+
img({ src, alt }: ComponentPropsWithoutRef<'img'>) {
245+
if (typeof src !== 'string' || !src) return null
246246
return (
247247
<img
248248
src={src}

0 commit comments

Comments
 (0)