diff --git a/client/src/components/Artifacts/Artifact.tsx b/client/src/components/Artifacts/Artifact.tsx index 45e017e207..6ece65fe81 100644 --- a/client/src/components/Artifacts/Artifact.tsx +++ b/client/src/components/Artifacts/Artifact.tsx @@ -56,6 +56,10 @@ export function Artifact({ const updateArtifact = useCallback(() => { const content = extractContent(props.children); + if (!content || content.trim() === '') { + return; + } + const title = props.title ?? 'Untitled Artifact'; const type = props.type ?? 'unknown'; const identifier = props.identifier ?? 'no-identifier';