From 07a1bf6dc61a8baebdf0c1e1df5c560bd3686885 Mon Sep 17 00:00:00 2001 From: Seth K Date: Fri, 18 Oct 2024 14:20:49 +0530 Subject: [PATCH] fix: altText error --- src/config.ts | 2 +- src/lib/client.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.ts b/src/config.ts index a07ee50e..fa734e78 100644 --- a/src/config.ts +++ b/src/config.ts @@ -18,7 +18,7 @@ /** * @private */ -const PICKER_VERSION = '1.29.3'; +const PICKER_VERSION = 'beta'; /** * @private diff --git a/src/lib/client.ts b/src/lib/client.ts index 5e3869f6..0fdb5ef1 100644 --- a/src/lib/client.ts +++ b/src/lib/client.ts @@ -475,7 +475,7 @@ export class Client extends EventEmitter { this.emit('upload.error', e); }); - return upload.upload(file, options.altText); + return upload.upload(file, options && options.altText); } /**