Skip to content

Commit 51163c6

Browse files
committed
fix(files): pass content directly to preview when not streaming to avoid stale frame
1 parent 342696d commit 51163c6

File tree

1 file changed

+1
-1
lines changed
  • apps/sim/app/workspace/[workspaceId]/files/components/file-viewer

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ function TextEditor({
402402
className={cn('min-w-0 flex-1 overflow-hidden', isResizing && 'pointer-events-none')}
403403
>
404404
<PreviewPanel
405-
content={revealedContent}
405+
content={isStreaming ? revealedContent : content}
406406
mimeType={file.type}
407407
filename={file.name}
408408
isStreaming={isStreaming}

0 commit comments

Comments
 (0)