Skip to content

Commit 20340b4

Browse files
checking google url
1 parent d3c5524 commit 20340b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

project/ws/app/src/lib/routes/home/routes/marketplace-provider/components/transformations/transformations.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export class TransformationsComponent implements OnInit, OnChanges {
132132
generatePublicUrl(googleUrl: string): string {
133133
const urlToReplace = 'https://storage.googleapis.com/igot'
134134
let url = googleUrl
135-
if (googleUrl.startsWith(urlToReplace)) {
135+
if (googleUrl && googleUrl.startsWith(urlToReplace)) {
136136
const urlSplice = googleUrl.slice(urlToReplace.length).split('/')
137137
url = `${environment.karmYogiPath}/content-store/${urlSplice.slice(1).join('/')}`
138138
}

0 commit comments

Comments
 (0)