diff options
| -rw-r--r-- | packages/ui/src/components/diff.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
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<T>(props: DiffProps<T>) { }) onMount(() => { - if (isServer) return + if (isServer || !props.preloadedDiff) return fileDiffInstance = new FileDiff<T>({ ...createDefaultOptions(props.diffStyle), ...others, |
