File tree 4 files changed +6
-12
lines changed
Track 4_ReactJS_Web Development/Project/Frontend/hrc-dashboard/src
4 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,6 @@ function AnalyticsButton() {
32
32
setPieChartData ( preparePieChart ( { data : analyticsData } ) ) ;
33
33
setBarChartData ( prepareBarChart ( { data : analyticsData } ) ) ;
34
34
setModalOpened ( true ) ; // Open the modal toggling the state of it.
35
- console . log ( pieChartData ) ;
36
35
showNotification ( {
37
36
title : 'Alert!' ,
38
37
message : `The analytics data are ready!` ,
Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ function DeleteButton() {
29
29
const handleDelete = async ( ) => {
30
30
if ( selectedIndices ?. length > 0 ) {
31
31
const respData = await deleteRows ( selectedIndices ) ;
32
- console . log ( respData ) ;
33
32
if ( respData [ 0 ] . rowsAffected > 0 ) {
34
33
showNotification ( {
35
34
title : 'Alert!' ,
Original file line number Diff line number Diff line change @@ -35,15 +35,11 @@ const preparePieChart = ({ data }) => {
35
35
}
36
36
}
37
37
*/
38
- const transformedDataArray = Object . keys ( transformedData ) . map ( ( item ) => {
39
- console . log ( item ) ;
40
- return {
41
- business : item ,
42
- 'No. of Customers' : transformedData [ item ] . no_of_customers ,
43
- 'Total Open Amount' : transformedData [ item ] . total_open_amount ,
44
- } ;
45
- } ) ;
46
- console . log ( transformedDataArray ) ;
38
+ const transformedDataArray = Object . keys ( transformedData ) . map ( ( item ) => ( {
39
+ business : item ,
40
+ 'No. of Customers' : transformedData [ item ] . no_of_customers ,
41
+ 'Total Open Amount' : transformedData [ item ] . total_open_amount ,
42
+ } ) ) ;
47
43
48
44
return transformedDataArray ;
49
45
} ;
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ const getAnalyticsData = async (/* payload */) => {
18
18
) ;
19
19
20
20
if ( status === 200 ) {
21
- console . log ( '[API /getanalytics] Response: 200 ' , data ) ;
21
+ console . log ( '[API /getanalytics] Response: 200 ' ) ;
22
22
return data ;
23
23
}
24
24
console . log ( '[API /getanalytics] Response: ' , status ) ;
You can’t perform that action at this time.
0 commit comments