The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
:bug: Add type check for data object
Asela14f66d316bf5
diff --git a/web/docs/guides/with-angular.mdx b/web/docs/guides/with-angular.mdxindex 926604fbd35..5f64dc7bd0c 100644--- a/web/docs/guides/with-angular.mdx+++ b/web/docs/guides/with-angular.mdx@@ -528,7 +528,11 @@ export class AvatarComponent {async downloadImage(path: string) {try {const {data} = await this.supabase.downLoadImage(path);- this._avatarUrl = this.dom.bypassSecurityTrustResourceUrl(URL.createObjectURL(data));+ if (data instanceof Blob) {+ this._avatarUrl = this.dom.bypassSecurityTrustResourceUrl(+ URL.createObjectURL(data)+ );+ }} catch (error) {console.error('Error downloading image: ', error.message);}