mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-05-24 17:06:00 +00:00
fix: HTML artifact preview renders blank in preview mode (#876)
The condition guarding ArtifactFilePreview only allowed markdown files through, which prevented HTML files from reaching the preview component. Added `language === "html"` to the condition so HTML artifacts render correctly in preview mode. Fixes #873 Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -234,8 +234,7 @@ export function ArtifactFileDetail({
|
|||||||
<ArtifactContent className="p-0">
|
<ArtifactContent className="p-0">
|
||||||
{previewable &&
|
{previewable &&
|
||||||
viewMode === "preview" &&
|
viewMode === "preview" &&
|
||||||
language === "markdown" &&
|
(language === "markdown" || language === "html") && (
|
||||||
content && (
|
|
||||||
<ArtifactFilePreview
|
<ArtifactFilePreview
|
||||||
filepath={filepath}
|
filepath={filepath}
|
||||||
threadId={threadId}
|
threadId={threadId}
|
||||||
|
|||||||
Reference in New Issue
Block a user