From 8628a1a84311fe2efffbdbcae8dcb4d33c59c3fe Mon Sep 17 00:00:00 2001 From: Daniel Feliz <47199869+dfeliz@users.noreply.github.com> Date: Wed, 21 Dec 2022 23:50:07 -0400 Subject: [PATCH 1/2] Add missing non-null assertion operator It was added in this part of the code in an earlier step, but is missing in this step. Typescript complains about this. --- docs/angular/your-first-app/5-adding-mobile.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/angular/your-first-app/5-adding-mobile.md b/docs/angular/your-first-app/5-adding-mobile.md index 72ef3429132..25e18e856c9 100644 --- a/docs/angular/your-first-app/5-adding-mobile.md +++ b/docs/angular/your-first-app/5-adding-mobile.md @@ -45,7 +45,7 @@ private async readAsBase64(photo: Photo) { } else { // Fetch the photo, read as a blob, then convert to base64 format - const response = await fetch(photo.webPath); + const response = await fetch(photo.webPath!); const blob = await response.blob(); return await this.convertBlobToBase64(blob) as string; From 6a6222519a5f2428777f3fccb79af0bffbaf4e5f Mon Sep 17 00:00:00 2001 From: Shawn Taylor Date: Fri, 21 Apr 2023 15:01:12 -0400 Subject: [PATCH 2/2] Update versioned docs --- .../version-v5/angular/your-first-app/5-adding-mobile.md | 2 +- .../version-v6/angular/your-first-app/5-adding-mobile.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/versioned_docs/version-v5/angular/your-first-app/5-adding-mobile.md b/versioned_docs/version-v5/angular/your-first-app/5-adding-mobile.md index 72ef3429132..25e18e856c9 100644 --- a/versioned_docs/version-v5/angular/your-first-app/5-adding-mobile.md +++ b/versioned_docs/version-v5/angular/your-first-app/5-adding-mobile.md @@ -45,7 +45,7 @@ private async readAsBase64(photo: Photo) { } else { // Fetch the photo, read as a blob, then convert to base64 format - const response = await fetch(photo.webPath); + const response = await fetch(photo.webPath!); const blob = await response.blob(); return await this.convertBlobToBase64(blob) as string; diff --git a/versioned_docs/version-v6/angular/your-first-app/5-adding-mobile.md b/versioned_docs/version-v6/angular/your-first-app/5-adding-mobile.md index 72ef3429132..25e18e856c9 100644 --- a/versioned_docs/version-v6/angular/your-first-app/5-adding-mobile.md +++ b/versioned_docs/version-v6/angular/your-first-app/5-adding-mobile.md @@ -45,7 +45,7 @@ private async readAsBase64(photo: Photo) { } else { // Fetch the photo, read as a blob, then convert to base64 format - const response = await fetch(photo.webPath); + const response = await fetch(photo.webPath!); const blob = await response.blob(); return await this.convertBlobToBase64(blob) as string;