We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99fff3d commit c94cfe0Copy full SHA for c94cfe0
src/components/CodeDiffViewer.vue
@@ -23,7 +23,6 @@
23
<script>
24
import {diffLines} from 'diff/lib/diff/line';
25
import CodeChunk from './CodeDiffChunk.vue';
26
-import clone from 'lodash/clone';
27
28
export default {
29
name: 'code-iff-viewer',
@@ -144,9 +143,9 @@ export default {
144
143
left.lineCount = setChunkLineNumber(chunk, left.lineCount);
145
left.chunks.push(chunk);
146
147
- let clonedChunk = clone(chunk);
+ let clonedChunk = {...chunk};
148
right.lineCount = setChunkLineNumber(clonedChunk, right.lineCount);
149
- right.chunks.push(chunk);
+ right.chunks.push(clonedChunk);
150
}
151
});
152
return {left, right};
0 commit comments