diff --git a/packages/text-editor/src/components/StringDiffViewer.svelte b/packages/text-editor/src/components/StringDiffViewer.svelte index d9a7b0cff6..e8406f8428 100644 --- a/packages/text-editor/src/components/StringDiffViewer.svelte +++ b/packages/text-editor/src/components/StringDiffViewer.svelte @@ -23,7 +23,7 @@ const handleDiff = (oldValue: string, newValue: string) => Diff[method](oldValue, newValue) - $: changes = handleDiff(value, compareTo) + $: changes = handleDiff(compareTo, value) {#each changes as change}