image null check
This commit is contained in:
@@ -8,6 +8,9 @@ class StrapiClient{
|
||||
constructor(private strapiUrl: string = "http://localhost:1337") {
|
||||
}
|
||||
public getImageUrl(imagePath: string){
|
||||
if ( !imagePath ){
|
||||
return "dummy.png"
|
||||
}
|
||||
return '/image/'+ imagePath;
|
||||
}
|
||||
public async httpGet(path: string){
|
||||
|
||||
Reference in New Issue
Block a user