File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
src/app/components/StateRoute Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 3
3
// @ts -nocheck
4
4
import React , { useEffect } from 'react' ;
5
5
// formatting findDiff return data to show the changes with colors, aligns with actions.tsx
6
- import { diff , formatters } from 'jsondiffpatch' ;
6
+ import { diff } from 'jsondiffpatch' ;
7
+ import { HtmlFormatter } from 'jsondiffpatch/lib/formatters' ;
8
+ // import * as jsondiffpatch from 'jsondiffpatch';
9
+ // import { diff } from 'jsondiffpatch';
10
+ // import formatters from 'jsondiffpatch/src/formatters';
7
11
import * as d3 from 'd3' ;
8
12
import { DefaultMargin } from '../../FrontendTypes' ;
9
13
import { useDispatch } from 'react-redux' ;
@@ -156,7 +160,7 @@ function History(props: Record<string, unknown>): JSX.Element {
156
160
) ;
157
161
158
162
const changedState = findStateChangeObj ( delta ) ; // determines if delta had any stateful changes
159
- const html = formatters . html . format ( changedState [ 0 ] ) ; // formats the difference into html string
163
+ const html = HtmlFormatter . format ( changedState [ 0 ] ) ; // formats the difference into html string
160
164
return html ; // return html string
161
165
}
162
166
Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ const BarGraph = (props: BarGraphProps): JSX.Element => {
235
235
// Cursor position in window updates position of the tool tip.
236
236
dispatch ( onHover ( data . componentData [ bar . key ] . rtid ) ) ;
237
237
if ( tooltipTimeout ) clearTimeout ( tooltipTimeout ) ;
238
- const top ;
238
+ let top ;
239
239
if ( snapshot === 'All Snapshots' ) {
240
240
top = event . clientY - margin . top - bar . height ;
241
241
} else {
You can’t perform that action at this time.
0 commit comments