mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-30 13:54:01 +00:00
fix: diffs double rendering when CSR'd
This commit is contained in:
parent
5953378a12
commit
4dd9f33eba
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user