From c56c0d8943c9ffb23c7e6a340b2ade5bfa0554f0 Mon Sep 17 00:00:00 2001 From: Joshua Albrechtsen Date: Wed, 12 Apr 2023 15:18:00 -0600 Subject: [PATCH] Update 2-taking-photos.md Was getting an error: "Type 'string | undefined' is not assignable to type 'string'." Adding an exclamation point at the end of line 111 solves it. --- docs/angular/your-first-app/2-taking-photos.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/angular/your-first-app/2-taking-photos.md b/docs/angular/your-first-app/2-taking-photos.md index 73b6d20533f..3837aa31bfc 100644 --- a/docs/angular/your-first-app/2-taking-photos.md +++ b/docs/angular/your-first-app/2-taking-photos.md @@ -108,7 +108,7 @@ Over in the `addNewToGallery` function, add the newly captured photo to the begi this.photos.unshift({ filepath: "soon...", - webviewPath: capturedPhoto.webPath + webviewPath: capturedPhoto.webPath! }); } ```