Skip to content

Commit aee3c91

Browse files
committed
fix: poster options tests & analytics
1 parent 3c8292a commit aee3c91

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/plugins/cloudinary/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class CloudinaryContext {
126126

127127

128128
const defaultPosterOptions = posterOptionsForCurrent();
129-
const userPosterOptions = options.posterOptions || {};
129+
const userPosterOptions = options.posterOptions;
130130
options.poster = options.poster || defaultPosterOptions;
131131
options.posterOptions = Object.assign(
132132
{},

src/utils/querystring.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
const objectToQuerystring = (obj) => {
2+
if (!obj) {
3+
return '';
4+
}
25
const keys = Object.keys(obj);
36

47
if (!keys.length) {

0 commit comments

Comments
 (0)