File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ interface HealthDataObject {
3333
3434const HealthContextProvider : React . FC < Props > = React . memo ( ( { children } ) => {
3535 const [ healthData , setHealthData ] = useState < any > ( { healthDataList : [ ] , healthTimeList : [ ] } ) ;
36+ console . log ( { healthData} )
3637 const [ services , setServices ] = useState < Array < string > > ( [ ] ) ;
3738 console . log ( { services} )
3839
@@ -59,7 +60,6 @@ const HealthContextProvider: React.FC<Props> = React.memo(({ children }) => {
5960
6061 let temp : HealthDataObject [ ] = [ ] ;
6162 servers . map ( async ( service : string ) => {
62-
6363 try {
6464
6565 ipcRenderer . removeAllListeners ( 'healthResponse' ) ;
@@ -70,7 +70,6 @@ const HealthContextProvider: React.FC<Props> = React.memo(({ children }) => {
7070 temp . push ( response [ 0 ] ) ;
7171
7272 if ( temp . length === servers . length ) {
73- console . log ( temp . length , servers . length )
7473 setServices ( [ `${ service } ` ] ) ;
7574 let transformedData : any = { } ;
7675 console . log ( { temp} )
You can’t perform that action at this time.
0 commit comments