We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f138bbe commit 9f50138Copy full SHA for 9f50138
1 file changed
src/plugins/cloudinary/index.js
@@ -1,4 +1,5 @@
1
import isFunction from 'lodash/isFunction';
2
+import isEmpty from 'lodash/isEmpty';
3
import { applyWithProps } from 'utils/apply-with-props';
4
import { sliceAndUnsetProperties } from 'utils/slicing';
5
import { isKeyInTransformation } from 'utils/cloudinary';
@@ -127,7 +128,7 @@ class CloudinaryContext {
127
128
129
130
const posterOptions = posterOptionsForCurrent();
- const hasUserPosterOptions = options.posterOptions && Object.keys(options.posterOptions).length > 0;
131
+ const hasUserPosterOptions = !isEmpty(options.posterOptions);
132
133
if (options.poster === undefined) {
134
if (isRawUrl(publicId)) {
0 commit comments