image null check

This commit is contained in:
Roland Schneider
2025-04-25 23:27:57 +02:00
parent 248a80727a
commit 477286fe45
9 changed files with 13 additions and 10 deletions

View File

@@ -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){