File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -40,8 +40,7 @@ const Action = (props: ActionProps) => {
4040 } else {
4141 seconds = '00' ;
4242 }
43- const convert :any = new Number ( )
44- miliseconds = convert . parseFloat ( miliseconds ) . toFixed ( 2 ) ;
43+ miliseconds = Number . parseFloat ( miliseconds ) . toFixed ( 2 ) ;
4544 const arrayMiliseconds = miliseconds . split ( '.' ) ;
4645 if ( arrayMiliseconds [ 0 ] . length < 2 ) {
4746 arrayMiliseconds [ 0 ] = '0' . concat ( arrayMiliseconds [ 0 ] ) ;
Original file line number Diff line number Diff line change @@ -103,8 +103,7 @@ const PerfView = (props:PerfViewProps) => {
103103 . style ( 'fill-opacity' , ( d :{ parent :object } ) => ( d . parent === packedRoot ? 1 : 0 ) )
104104 . style ( 'display' , ( d :{ parent ?:object } ) => ( d . parent === packedRoot ? 'inline' : 'none' ) )
105105 . text ( ( d :{ data :{ name :string , componentData ?:{ actualDuration :any } } } ) => {
106- const convert :any = new Number ( )
107- return `${ d . data . name } : ${ convert . parseFloat ( d . data . componentData . actualDuration || 0 ) . toFixed ( 2 ) } ms` } ) ;
106+ return `${ d . data . name } : ${ Number . parseFloat ( d . data . componentData . actualDuration || 0 ) . toFixed ( 2 ) } ms` } ) ;
108107
109108 // Remove any unused nodes
110109 label . exit ( ) . remove ( ) ;
You can’t perform that action at this time.
0 commit comments