File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -7,8 +7,7 @@ import { useStoreContext } from "../store";
77
88function Diff ( { snapshot, show } ) {
99 const [ mainState ] = useStoreContext ( ) ;
10- const { currentTab, tabs } = mainState ; //k/v pairs of mainstate store object being created
11- console . log ( mainState ) ;
10+ const { currentTab, tabs } = mainState ; //Nate:: k/v pairs of mainstate store object being created
1211 const { snapshots, viewIndex, sliderIndex } = tabs [ currentTab ] ;
1312 let previous ;
1413
@@ -18,9 +17,8 @@ function Diff({ snapshot, show }) {
1817 } else {
1918 previous = snapshots [ sliderIndex - 1 ] ;
2019 }
21- //diff function is supposed to return two of the same objects side by side
20+ // Nate:: diff function from jsondiffpatch is supposed to return a comparaison of two objects, one has an updated change
2221 const delta = diff ( previous , snapshot ) ;
23- console . log ( "this is the result of running diff function " , delta ) ;
2422 // returns html in string
2523 const html = formatters . html . format ( delta , previous ) ;
2624 if ( show ) formatters . html . showUnchanged ( ) ;
You can’t perform that action at this time.
0 commit comments