diff --git a/packages/ui/src/components/diff.tsx b/packages/ui/src/components/diff.tsx index c895a6e29..bd2134515 100644 --- a/packages/ui/src/components/diff.tsx +++ b/packages/ui/src/components/diff.tsx @@ -46,7 +46,7 @@ export function Diff(props: DiffProps) { }) onMount(() => { - if (isServer) return + if (isServer || !props.preloadedDiff) return fileDiffInstance = new FileDiff({ ...createDefaultOptions(props.diffStyle), ...others,