Skip to content

Commit df5a23a

Browse files
committed
fix(altText): Added check for altText when passed to client.upload
1 parent cfe319d commit df5a23a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
/**
1919
* @private
2020
*/
21-
const PICKER_VERSION = '1.29.3';
21+
const PICKER_VERSION = 'beta';
2222

2323
/**
2424
* @private

src/lib/client.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ export class Client extends EventEmitter {
475475
this.emit('upload.error', e);
476476
});
477477

478-
return upload.upload(file, options.altText);
478+
return upload.upload(file, options && options.altText);
479479
}
480480

481481
/**

0 commit comments

Comments
 (0)