File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export class AppComponent {
2828
2929  ngOnInit ( ) : void   { 
3030    this . generateHexCodes ( ) ; 
31-     this . fetchColorsForPage ( ) ; 
31+     void   this . fetchColorsForPage ( ) ; 
3232  } 
3333
3434  generateHexCodes ( ) : void   { 
@@ -74,5 +74,4 @@ export class AppComponent {
7474    this . pageSize  =  val ; 
7575    void  this . fetchColorsForPage ( ) ; 
7676  } 
77- 
7877} 
Original file line number Diff line number Diff line change @@ -46,16 +46,14 @@ export class ColorService {
4646      . pipe ( 
4747        catchError ( ( error : any )  =>  throwError ( ( )  =>  new  Error ( `Error fetching color: ${ error . message  ||  error }  ` ) ) ) , 
4848      ) 
49-       . pipe ( map ( ( data : any )  =>  { 
50-         return  { 
51-           name : data . name . value , 
52-           image : data . image . bare , 
53-         } 
54-     } ) ) ; 
49+       . pipe ( map ( ( data : any )  =>  ( { 
50+         name : data . name . value , 
51+         image : data . image . bare , 
52+       } ) ) ) ; 
5553  } 
5654} 
5755
5856export  interface  Color  { 
5957  image : string ; 
6058  name : string ; 
61- } 
59+ } 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments