File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -61,17 +61,16 @@ var JsonDiffReact = function (_Component) {
6161
6262 var delta = Jsondiffpatch . create ( {
6363 objectHash : objectHash ,
64-
6564 arrays : {
6665 // default true, detect items moved inside the array (otherwise they will be registered as remove+add)
6766 detectMove : true ,
6867 // default false, the value of items moved is not included in deltas
69- includeValueOnMove : true
68+ includeValueOnMove : false
7069 }
7170 } ) . diff ( left , right ) ;
7271 var html = annotated ? formatters . annotated . format ( delta ) : formatters . html . format ( delta , left ) ;
7372 show ? formatters . html . showUnchanged ( ) : formatters . html . hideUnchanged ( ) ;
74- console . log ( "test " ) ;
73+ console . log ( "test2 " ) ;
7574 return html ? _react2 . default . createElement ( "div" , { dangerouslySetInnerHTML : { __html : html } } ) : _react2 . default . createElement (
7675 "p" ,
7776 { style : { fontSize : 12 , color : "#999" } } ,
Original file line number Diff line number Diff line change @@ -30,19 +30,18 @@ class JsonDiffReact extends Component {
3030 } = this . props ;
3131 const delta = Jsondiffpatch . create ( {
3232 objectHash,
33-
3433 arrays : {
3534 // default true, detect items moved inside the array (otherwise they will be registered as remove+add)
3635 detectMove : true ,
3736 // default false, the value of items moved is not included in deltas
38- includeValueOnMove : true ,
37+ includeValueOnMove : false ,
3938 } ,
4039 } ) . diff ( left , right ) ;
4140 const html = annotated
4241 ? formatters . annotated . format ( delta )
4342 : formatters . html . format ( delta , left ) ;
4443 show ? formatters . html . showUnchanged ( ) : formatters . html . hideUnchanged ( ) ;
45- console . log ( "test " ) ;
44+ console . log ( "test2 " ) ;
4645 return html ? (
4746 < div dangerouslySetInnerHTML = { { __html : html } } />
4847 ) : (
You can’t perform that action at this time.
0 commit comments